Android - How can I view a sql database created in my app? I'm running it on the Android emulator in Eclipse

后端 未结 3 523

I have an Android application that uses the Android database to create tables and store data. I\'m currently running this app in the emulator in Eclipse. I have 2 questions:

3条回答
  •  伪装坚强ぢ
    2020-12-06 03:00

    If you want to browse your databases inside eclipse follow these instructions taken from here:

    Android - How can I view a sql database created in my app? I'm running it on the Android emulator in Eclipse

    1.Download the Questoid Plugin

    2.Place the file in your Eclipse plugins folder (e.g. /usr/lib/eclipse/plugins)

    3.Restart Eclipse

    4.Start up an Android Emulator w/ Debugging in Eclipse

    5.Switch to the DDMS Perspective in Eclipse

    6.Go to the 'File Explorer' tab to locate your device's database file

    7.Navigate to: e.g. 'data -> data -> com.myproject -> databases -> myproject

    8.Open the database file in Questoid (see screen shot)

    9.Switch to the 'Questoid SQLite Browser' tab that appears

    10.Switch to the 'Browse Data' sub tab

    11.Select your table from the drop down menu

    12.Browse your data here and onward into the digital sunset

    enter image description here

提交回复
热议问题