Sunday, September 9, 2012

Re: [android-developers] How to export/import sqlite database to/from sdcard in android application?

Oh, and add the WRITE_EXTERNAL_STORAGE permission to your manifest.

On Sun, Sep 9, 2012 at 6:37 PM, Mark Murphy <mmurphy@commonsware.com> wrote:
> 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 <geeksunil@yahoo.com> 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 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
>
>
>
> --
> 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!



--
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 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