Android Cache Partition

來源:互聯網
上載者:User

來自:http://dlwt.csdn.net/fd.php?i=326037831086282&s=eeb1c29671889674de8258c0f1e29882

 

Android Cache Partition

 

What means “Backup”?

Android's backup service allows you to copy your persistent application
data to remote "cloud" storage, in order to provide a restore point for the application data and settings. If a user performs a factory reset or converts to a new Android-powered device, the system automatically restores your backup data when the application
is re-installed. This way, your users don't need to reproduce their previous data or application settings. This process is completely transparent to the user and does not affect the functionality or user experience in your application.

How “Backup” works?

Settings->privacy->Back up my data   We can enable “Backup” here.When backupping,BackupManager copy app’s own files to /cache/backup/app_nameWhen restoring,BackupManager copy files back from /cache/backup/app_nameSystem apps who use “backup”:   Settings, browser,inputmethod,
userdictionary,   Wallpapers, wifi service and backup native command---bmgrThe space “Backup” takes depends on size of app’s files.

What’sDownloadProvider?

Android內部提供了一個DownloadProvider,是一個非常完整的下載工具,提供了很好的外部介面可以被其他應用程式調用,來完成下載工作。同時也提供和很好的下載、通知、儲存等機制。
在Android的Browser等工具裡面都用到了這個DownloadProvider。但是很遺憾的是,這個DownloadProvider不對app開發人員開放,只作為內部使用。Market.apk 源碼沒有公開,推斷使用了DownloadProvider進行app的下載

 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.