Make sure your SQLiteDatabase objects are closed (via calling close() on them directly or close() on your SQLiteOpenHelper). From there, it is standard Java I/O, using methods like getExternalStorageDirectory() on your Activity to build a path to where you want the file to be copied.
On Sat, Sep 8, 2012 at 3:04 AM, SUNIL KUMAR <[email protected]> wrote: > I have an application that has a sqlite database, I want to export the app > db to sdcard & then import the same from sdcard. Can anyone guide me in this > concern. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

