Create you database in code, when app is first run. Load data from
assets. If there is a lot of data load it from internet.
Regards
On Dec 2, 2:07 pm, Narendra Singh Rathore <nsr.curi...@gmail.com>
wrote:
> Hi again, my problem solved by storing my database in sdcard, but even now
> I have to push my database for the first time I m using it.
>
> Now, I want something like....storing my database in assets folder, so that
> it can directly be installed with the apk directly, without using push.
>
> Here is what I did.
> 1) Copied the database in assets folder.
>
> Now, for accessing that database, I m doing---
>
> 2) db=*SQLiteDatabase.openDatabase*("file:////android_assets/MY_DATABASE<file: //android_assets/MY_DATABASE>",
> null, SQLiteDatabase.CREATE_IF_NECESSARY);
>
> Am I doing something wrong here, let me know if I m wrong.
>
> I hope, u all got my problem..
>
> Narendra :(
--
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