I have completed developing the very first phase of my application. I needed to test it with an actual device so connected my mobile to my computer and installed the applying. This application utilizes a database, then when I run my application on my small mobile it throws an error

W/System.err(21912): android.database.sqlite.SQLiteException: no such table: UserTable: , while compiling: SELECT * FROM UserTable WHERE username='null'

How do i place my database into my device throughout runtime ?

Regular approach to placing it through Eclipse wont act as root access is blocked through the cell phone.

    public class _DBHelper extends SQLiteOpenHelper {
        public void onCreate(SQLiteDatabase db) {
            try {
            } catch (Exception e) {
                Log.i(this.getClass().getName(), e.getMessage());


        private void InitTables(SQLiteDatabase db) {
            ContentValues cv = new ContentValues();
            cv.put("colName", "...");
            db.insert("MyTable", "id", cv);


Please make reference to this informative guide :


For creating new table you need to write the code in onCreate(SQLiteDatabase database) method after which in

onUpgrade(SQLiteDatabase database, int oldVersion,
            int newVersion) pass the new version.