Monday, June 14, 2010

Re: [android-developers] Database folder

Use getDatabasePath() on your Activity or Service:

http://developer.android.com/reference/android/content/Context.html#getDatabasePath(java.lang.String)

Supply it the name you will want for the database, and download the
file to that specific path.

On Mon, Jun 14, 2010 at 3:04 PM, Pinheiro <rui.c.pinheiro@gmail.com> wrote:
> After testing the various techniques to populate a large database
> (50.000 records, 700KB), I've decided to download a SQLite database
> directly from the Web to the phone (it takes just a few seconds, the
> alternatives took up to 3 minutes).
>
> My question is that since there isn't a method to get it, the folder
> where databases are stored is always
>
> getBaseContext().getFilesDir()."../databases" ?
>
> Is this a valid assumption for all Android versions?

--
Mark Murphy
CommonsWare
mmurphy@commonsware.com
http://commonsware.com

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