Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>After much research through Google, I simplified accessing a SQLite database in Eclipse. I'll compile my research in an answer here for <strong>accessing a SQLite database on a connected or emulated Android phone for viewing within Eclipse</strong>.</p> <p>To browse files from a specific app on your device, grant read and access privileges of each folder in the path to the app. </p> <ol> <li>Open cmd/terminal</li> <li>Type 'adb shell'</li> <li>su</li> <li>Press 'Allow' on device</li> <li>chmod 777 /data /data/data /data/data/com.application.package </li> <li>chmod -R 777 /data/data/com.application.package</li> </ol> <p>After this you should be able to browse the files on the device.</p> <p>A very useful Eclipse plugin for <strong>browsing a SQLite database on an Android phone from within Eclipse</strong> is the, seemingly no longer supported, Questoid browser plugin</p> <ol> <li>Currently, you can download plugin from Java2S here: <a href="http://www.java2s.com/Code/Jar/c/Downloadcomquestoidsqlitebrowser120jar.htm" rel="nofollow noreferrer">http://www.java2s.com/Code/Jar/c/Downloadcomquestoidsqlitebrowser120jar.htm</a></li> <li>Place the plugin's com.questoid.sqlitebrowser_1.2.0.jar file in your Eclipse plugins folder (e.g. /path/to/eclipse/plugins)</li> <li>Restart Eclipse</li> <li>Switch to the DDMS Perspective in Eclipse</li> <li>Select appropriate device (in this case your phone, but alternatively your Android Emulator)</li> <li>Go to the 'File Explorer' tab to browse device's files</li> <li>Find and select the database under /data/data/com.application.package/databases/database_name</li> <li><p>In Eclipse, in the File Explorer, there is a blue 3-layer pancake-like cylinder icon in the upper-right corner of the File Explorer Window that you click.</p> <p><a href="http://www.tylerfrankenstein.com/sites/default/files/styles/large/public/questoid.png" rel="nofollow noreferrer">Click blue 3-layer pancake-like cylinder icon in the upper-right corner of the File Explorer Window http://www.tylerfrankenstein.com/sites/default/files/styles/large/public/questoid.png</a></p> <p>This opens the database file in a Questoid tab in the same window as LogCat.</p></li> <li>Click to the 'Questoid SQLite Browser' tab</li> <li>Click on to the 'Browse Data' sub tab</li> <li>Select your table from the drop down menu</li> <li>And...you have your data for viewing pleasure</li> </ol> <p>Hope you guys find this post more specifically useful as a step-by-step for viewing your database.</p> <hr> <p>References</p> <ul> <li><a href="https://stackoverflow.com/questions/4867379/android-eclipse-ddms-cant-access-data-data-on-phone-to-pull-files">StackOverflow Post on Accessing Appropriate Folder</a></li> <li><a href="http://www.tylerfrankenstein.com/browse-android-emulator-sqlite-database-eclipse" rel="nofollow noreferrer">Blog Post on Accessing Questoid Plugin</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload