How to view data saved in android database(SQLite)?

前端 未结 8 936
礼貌的吻别
礼貌的吻别 2020-11-30 18:38

I am able to view the database from eclipse(from file explorer), but I want to view the whole detail, I mean the data that I have inserted, which I am unabl

相关标签:
8条回答
  • 2020-11-30 19:33

    If you don't want to download anything, you can use sqlite3 tool which is provided with adb :

    Examining sqlite3 databases from a remote shell

    and :

    Command Line Shell For SQLite

    0 讨论(0)
  • 2020-11-30 19:39

    Try this..

    1. Download the Sqlite Manager jar file here.

    2. Add it to your eclipse > dropins Directory.

    3. Restart eclipse.

    4. Launch the compatible emulator or device

    5. Run your application.

    6. Go to Window > Open Perspective > DDMS >

    7. Choose the running device.

    8. Go to File Explorer tab.

    9. Select the directory called databases under your application's package.

    10. Select the .db file under the database directory.

    11. Then click Sqlite manager icon like this Sqlite manager icon.

    12. Now you're able to see the .db file.

    Happy coding.....

    0 讨论(0)
提交回复
热议问题