Android SQLiteOpenHelper: Why onCreate() method is not called?

前端 未结 10 850
死守一世寂寞
死守一世寂寞 2020-12-08 18:38

I am trying to make my first Android app. I noticed that the SQLiteOpenHelper.onCreate() method is not called to create tables if the database not exists. Howev

10条回答
  •  情歌与酒
    2020-12-08 19:07

    In my case, it was not being called because the database already existed! So, if possible, make sure to delete your app and install it back and only then check if it is being called or not.

提交回复
热议问题