Android: SMS and contacts data access
<p>I'm trying to do a backup &amp; restore application and I want to backup all SMS and all contacts informations. I read a lot about content providers but I first tried to copy these <code>contacts2.db</code> and <code>smsmms.db</code> files (the lazy and easiest way I figured out ) with no success because of permission issue (these databases are private). 
Now it seems like content providers remain my only issue. I thought about accessing each data field in both SMS and contacts, store it in files(XML format) with a specific structure, being easy to read and restore. 
Is that a good way? Are there any other easy ways instead of content providers for my backup &amp; restore purpose?</p>
