Friday, October 23, 2009

[android-developers] Re: database question

Wouter wrote:
>> Now I can do several updates to the tvchannels table and i want to
>> make a backup of this table to a lokal database file. How can i do
>> that?

Copy the database file to a backup file. Either you already know your
path to your database, or you can use getDatabasePath() to find that path.

To be safe, I recommend you have all SQLite* objects and Cursors on that
database closed before making the file copy.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android 1.6 Programming Books: http://commonsware.com/books

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments:

Post a Comment