How to find and clear the SQLite db file in Android (emulator)

后端 未结 6 889
我寻月下人不归
我寻月下人不归 2021-02-01 23:17

I\'ve just got my first SQLite database up and running but to reproduce it I wanted a quick way to clear the db file (so I can call my openOrCreateDatabase method a

6条回答
  •  南方客
    南方客 (楼主)
    2021-02-02 00:14

    1)Its actually stored in the emulator, If you are using Eclipse then You just go to DDMS and find your database file in the data packages and then in the left there is an option to pull the file out and you can view it. you can use wipe user data on emulator load to clear all data.Or you may uninstall the application by using:

    C:\> adb -e uninstall com.example.package
    

    or, if your application is on a physical phone, use:

    C:\> adb -d uninstall com.example.package
    

提交回复
热议问题