David B
David B

Reputation: 3581

Android: back-up messages and files programmatically

Is it possible to back-up messages (SMS, MMS, email) and files (both on internal and external memory) then restore it using the same application without having to root/jailbreak the device? Either possible or not, what approach will I consider? [Kindly support with SSCCE, Thanks]

I am consider Android 2.2 (Froyo) as my base platform.


UPDATE: Jan. 30, 2013

Update my question

Upvotes: 10

Views: 4310

Answers (2)

CommonsWare
CommonsWare

Reputation: 1007296

Is it possible to back-up messages (SMS, MMS, email) and files (both on internal and external memory) then restore it using the same application without having to root/jailbreak the device?

Not for all of that. In fact, not even for most of that.

Some things have public, documented means of loading and saving data, such as content providers documented in the Android SDK. Many of those are not designed to be used for backup/restore purposes. For example, if you tried to back up and restore contacts, since many of those contacts are actually synchronized from other sources (e.g., Facebook), you could screw things up royally.

Some things have undocumented, unsupported means of loading and saving data, such as the SMS content provider. Since you have no way of accurately predicting the behavior across multiple devices, trying to implement a backup/restore regime using these sources is impractical IMHO.

Everything else on internal storage is inaccessible to you, for obvious privacy and security reasons.

Upvotes: 2

hwrdprkns
hwrdprkns

Reputation: 7585

Is it too much of a longshot just to quote this question for the bounty?

How to Read MMS Data in Android?

Be sure to request the READ_SMS permission in your manifest.

Upvotes: 6

Related Questions