I dont think you can use the SQLiteOpenHelper for anything but db's in
your data directory, but you can open them given any path (including
one to the sd card) with this:
http://code.google.com/android/reference/android/database/sqlite/SQLiteDatabase.html#openDatabase(java.lang.String,%20android.
Peter Stevenson wrote:
> peter wrote
>
>
> Read this book
>
>
> The Busy Coder's Guide to Android Development
>
> By Mark L. Murphy
>
> Chapter 25 Building a Content Provider
>
>
> File sdcard = new File("/sdcard/application/mydb.sqlite" );
That line is from an earlier edition of my
peter wrote
Read this book
The Busy Coder's Guide to Android Development
By Mark L. Murphy
Chapter 25 Building a Content Provider
File sdcard = new File("/sdcard/application/mydb.sqlite" );
wescorp wrote:
> Hello,
>
> I need to be able to work with databases on the sdcard.
>
> I'
I vaguely recall that the SQLiteOpenHelper is just for DBs that are
installed in the default directory for your application. (Remember when you
used it in the default location you just say "my.db" to open it not
"/data/data/myapp/databases/my.db").
Ludwig
2008/10/29 wescorp <[EMAIL PROTECTED]>
>
4 matches
Mail list logo