SQLiteOpenHelper “onCreate” is not called? (the DB does not exist)

前端 未结 5 1092
[愿得一人]
[愿得一人] 2021-01-19 21:54

From a fragment I instantiate this way

fmdata = new FileManagerData(getActivity());

the following class. I don\'t understand why onCreate()

5条回答
  •  佛祖请我去吃肉
    2021-01-19 22:31

    The onCreate method will be called after first access to the DB. Make a query to the DB and onCreate will be invoked.

提交回复
热议问题