Android permission of creating database

前端 未结 6 1950
悲&欢浪女
悲&欢浪女 2020-12-18 21:55

Hi I have some problems in creating the sqlite database in android.

Everything is ok on the emulator, I can create the database. But it doesn\'t work on the actually

6条回答
  •  青春惊慌失措
    2020-12-18 22:41

    It's very easy to solve You must have not added .db extension in your DataBase Name declared in the db java file For eg, public static final String DB_NAME = "tasks.db";

    DON'T FORGET THE .db EXTENSION

提交回复
热议问题