I know this is possible but I’m not really sure where to start. Has anyone been able to achieve this?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
DataXmlExporterclass described in this article will export a SQL lite DB to an XML file.http://www.screaming-penguin.com/node/7749
The full example is available in this SVN repo. The
ManageDataclass invokes the export.http://totsp.com/svn/repo/AndroidExamples/trunk/
You will need to create an application class that exposes the DB and referenced as the application name in the AndroidManifest.xml file. Then use that DB as the argument to the
DataXmlExporterconstructor.Here’s the application class I use. You should already have a class (probably not named
DatabaseHelper) that extendsSQLiteOpenHelper