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

前端 未结 10 876
死守一世寂寞
死守一世寂寞 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 18:48

    I had the same problem.. the resolution for me was to add .db as extension of the database name

提交回复
热议问题