[android-developers] Re: SDCard and SQLiteOpenHelper problem

2008-10-30 Thread mickrobk
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.

[android-developers] Re: SDCard and SQLiteOpenHelper problem

2008-10-30 Thread Mark Murphy
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

[android-developers] Re: SDCard and SQLiteOpenHelper problem

2008-10-30 Thread Peter Stevenson
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'

[android-developers] Re: SDCard and SQLiteOpenHelper problem

2008-10-29 Thread Ludwig
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]> >