[android-developers] Re: SQLite database location restriction

2009-11-13 Thread Nathan
On Nov 12, 11:50 pm, westmeadboy westmead...@yahoo.co.uk wrote: 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

[android-developers] Re: SQLite database location restriction

2009-11-12 Thread Nathan
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 guide http://developer.android.com/guide/topics/data/data-storage.html makes it sounds like you can't:

[android-developers] Re: SQLite database location restriction

2009-11-12 Thread westmeadboy
http://developer.android.com/intl/en/reference/android/database/sqlite/SQLiteDatabase.html#openOrCreateDatabase(java.io.File, android.database.sqlite.SQLiteDatabase.CursorFactory) On Nov 13, 11:00 am, Nathan nathan.d.mel...@gmail.com wrote: It seems there is a hard restriction on where SQLite

[android-developers] Re: SQLite database location restriction

2009-11-12 Thread westmeadboy
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