Yes, I can see that is misleading. I'm sure they just mean that for
when you don't specify a File.

Have you tried putting it on the sdcard? I have an app, used by
thousands of users, where a 20MB+ sqlite db file is located on the
sdcard.

Hope this helps!

On Nov 13, 3:43 pm, Nathan <[email protected]> wrote:
> Yes, the method
> public static SQLiteDatabase openOrCreateDatabase (File file,
> SQLiteDatabase.CursorFactory factory)
>
> makes it sound like you can open an arbitrary filename.
>
> But the developer's 
> guidehttp://developer.android.com/guide/topics/data/data-storage.html
>
> makes it sounds like you can't:
>
> "All databases, SQLite and others, are stored on the device in /data/
> data/package_name/databases."
>
> Nathan
>
> On Nov 12, 11:21 pm, westmeadboy <[email protected]> wrote:
>
>
>
> >http://developer.android.com/intl/en/reference/android/database/sqlit...,
> > android.database.sqlite.SQLiteDatabase.CursorFactory)
>
> > On Nov 13, 11:00 am, Nathan <[email protected]> wrote:
>
> > > It seems there is a hard restriction on where SQLite databases
> > > reside.
>
> > > All databases must be in /data/data/<package_name>/databases,
> > > according to the spec. Specifically, they can't be on a storage card.
>
> > > This seems ok if the database is a small one that begins and ends with
> > > an adroid app. But for a 1 gig multimedia database that is transferred
> > > from somewhere else, that is limiting.
>
> > > If this restriction is firm:
>
> > > 1. Is this location user accessible? IE can an end user with an
> > > unlocked phone copy files into there from their desktop computer or
> > > storage card.
> > > 2. How much storage space is likely to be available in that location?.
> > > On the 16G droid, for example, how. much of that 16G is accessible?
>
> > > Thanks

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