开发者

Android application backup and restore?

For the application I'm creating, I'd like users to be able to backup their application data (to an SD card f开发者_如何学运维or instance). What I mean by application data is the preferences and SQLite database. I'd also like to make it possible to restore the data.

Is it possible to do this with BackupManager? If yes, can someone give me a simple example.


BackupManager is for saving your data to the cloud. To have something backed up to the SDcard, you could write some kind of a service for your application which does this. All the files/dbs/preferences can be written to a folder.

But, this approach also has a risk if the user formats his SD card or deliberately deletes the folder. You can have no control over that.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜