m trying to retrive data from the databse but logcat shows msg "no such table " everything looks good but i don't understand why this problem happens.any one plese help me m new in android.
this belongs from main activity:
public class AllContact extends AppCompatActivity {
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.allcontactlayout_main);
      TextView  text=(TextView)findViewById(R.id.textView);
       TextView text2=(TextView)findViewById(R.id.textView2);
        ContactDatabase onbOfContactDatabase=new ContactDatabase(getBaseContext());
       Cursor get= onbOfContactDatabase.showData();
    }
}
//when i call showData() logcat show msg "no such table"
this belongs from databse:
    public class ContactDatabase extends SQLiteOpenHelper {
        SQLiteDatabase db;
        public static final String DATABASE_NAME="totalContact.db";
        public static final  String TABLE_NAME="contact";
        public static final  String NAME="name";
        public static final  String PHONE="phone";
        public ContactDatabase(Context context) {
            super(context, DATABASE_NAME, null, 1);
        }
        @Override
        public void onCreate(SQLiteDatabase db) {
            try {
                db.execSQL("craete table contact" +
                        "(id integer primary key autoincrement, name text, phone text)");
            }catch(android.database.SQLException e){
                    System.out.println("table create nhi ho rha");
            }
        }
        @Override
        public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
            db.execSQL("DROP TABLE IF EXISTS contact");
            onCreate(db);
        }
   public void insertContact(String nam,String mob){
            db=this.getWritableDatabase();
            ContentValues contentValues=new ContentValues();
            contentValues.put(NAME,nam);
            contentValues.put(PHONE,mob);
            db.insert(TABLE_NAME, null, contentValues);
            db.close();
        }
      public Cursor showData(){
            db=this.getWritableDatabase();
            Cursor res =  db.rawQuery("SELECT  * FROM contact", null);
            return res;
        }
    }
