Reputation: 153
I would like to copy the entire contents of the mms-sms database to the SD card, but I can't find a way of doing so. I'd preferably also like to avoid iterating through the entire database (a few calls to the database querying excluded from this exception).
I have already added the R/W External Storage permissions and the R/W SMS permissions.
Can this be done without rooting and copying mmssms.db?
Extra Details: I'm using API level 21 (Lollipop 5.0+) and I'd also need a way of restoring the copy from the SD card to the database.
Upvotes: 0
Views: 223
Reputation: 2881
This question is very API Level dependent since Android opened up in Level 19.
Telephony.Sms
and Telephony.Mms
have Inbox
and Outbox
classes that contain all the SMS and MMS messages on the device
Upvotes: 1