This is an old question, but the answer may help others.
The default path in which Android saves databases cannot be connected to unloaded devices. Thus, the easiest way to access the database file (debugging environment only) is to change the class constructor:
public class MySQLiteOpenHelper extends SQLiteOpenHelper { MySQLiteOpenHelper(Context context) { super(context, "/mnt/sdcard/database_name.db", null, 0); } }
Remember to change the following lines for your production environment:
public class MySQLiteOpenHelper extends SQLiteOpenHelper { MySQLiteOpenHelper(Context context) { super(context, "database_name.db", null, 0); } }
RandomUser Feb 17 '14 at 15:16 2014-02-17 15:16
source share