上一篇文章(Android 透過 DownloadManager 下載檔案 ),我們寫到了如何透過DownloadManager 下載一個檔案,但是我們要如何才能知道下載進度如何呢?
兼任的偽善者,part-time的故事家,業餘的code generator,不服輸的夢想家,長不大的幼稚鬼,一個撿技術破爛的中年大叔
在Raspberry Pi 中常常就是 如果下了 apt-get upgrade 就是出現 No space left on Device .
上網路查了一下,這指令可以擴充原本規劃的區域.
sudo raspi-config
今天筆記一下,關於Cordova 寫入檔案的方法,主要參考連結為
https://cordova.apache.org/docs/en/3.0.0/cordova_file_file.md.html
http://www.raymondcamden.com/2014/11/05/Cordova-Example-Writing-to-a-file
1.首先要加入plugin ,文中我加入兩個 File , Notification 因為 Notification 我很常用到,事實上只需要File就好了
目前10240 版本中,還沒有IIS ,本來想說可以寫一些網頁來控制的,不過目前網路上看官方的一些範例,是可以透過自己實作一個httpD ,所以我也動手實作看看,當然我改寫了一部分,我直接讓他可以讀取專案下面 Assets\html\ 的所有檔案
最近在看 Universal Windows Platform 的東西,之前都是用isolated storage ,但是最近看到官方文件寫到
Isolated storage is not available for Windows Store apps. Instead, use the application data classes in the Windows.Storagenamespaces included in the Windows Runtime API to store local data and files. For more information, see Application data in the Windows Dev Center.
所以就乾脆改變紀錄的方法,其實,透過Windows.Storage他存放的位置跟之前Isolated Storage 位置差不多 基本上只是多一層,目前我測試位置是
C:\Users\[USERNAME]\AppData\Local\Packages\[APPID]\LocalState\