one of the wonderful things about sqlite is that (at least in my 
experience) its database files are portable between environments. 
i've utilised this to check my content provider's operation by 
adb-pulling the sqlite file back to the Mac, running up sqlite3, and 
perusing the contents. fab.

you can do the same thing in reverse by building your database 
offline, including the file in res/raw (or another more appropriate 
place), then checking for the existence of your database file on 
launch and copying it into place if it's not there.

hth


>Hi all,
>
>       I want to create a sqlite database by importing data from some
>data files, like csv etc., and then put this database into one of my
>android application and then deploy into the Android device.
>
>      By now the samples and tutorial what I found are all taliking
>about creating the sqlite database at runtime when running the android
>application on the device.  Is there anyway I can create it offline
>and then attach it to my application later?
>
>     Any tools and docs for this?
>
>      Thank you very much!
>
>
>regards
>
>Richard
>
>
>
>--
>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


-- 
jason.vp.engineering.particle

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

Reply via email to