How to work with sqlite in android studio in real device

Total Post:1

 1224  View(s)
Rate this:
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 machine. When I tried to debug the application on my phone, it just failed to create the database.

So can anyone tell my what happened? Is there any special permission I need to add in the Manifest file? I've tried ACCESS_CHECKIN_PROPERTIES or WRITE_EXTERNAL_STORAGE, but still cannot get the database.

By the way, is the custom database can only be stored in the sd card but the root directory?

Thank you very much!!