Click here to Skip to main content
15,881,898 members
Articles / Mobile Apps
Tip/Trick

How to View SQLite Data from Droidio

Rate me:
Please Sign up or sign in to vote.
5.00/5 (4 votes)
7 Apr 2014CPOL1 min read 13.8K   10   2
Step-by-step instructions on how to view SQLite data from Android Studio and SQLite Data Browser

Monitoring is not just about Lizards Anymore

In Droidio (Android Studio), select the "Monitor (DDMS Included)" glyph (the full-length green Droid glyph just to the left of the blue question mark):

Image 1

With the Devices tab active, select the File Explorer tab

Navigate to \data\data\<projectName>\databases\<fileName>*.DB (the default landing spot for SQLite databases created in Android).

Make sure your project is selected in the Name section of the Devices tab on the left.

Select your database, as shown here (assuming your database is named "HHS.db":

Image 2

Harden the Molten Mass

Select the "<=" button ("Pull a file from the device") in the NE corner.

That will open the "Get Device File" dialog, which is a "File Save" dialog.

Once you save the *.DB file (and possibly the related "*.db-journal" file), you can open SQLite Database Browser utility (which you can download from here) and then, using the usual method for opening a file, view the database structure, raw data, or query it for specific data contained therein, as shown here:

Image 3

Note: You can do more with SQLite Database Browser utility than just view and query the SQLite data, but that is beyond the scope of this tip (at any rate, if you are reading this, you can probably figure it out without any hand-holding).

Tin Cup

If you found this tip helpful, send me a Pistachio tree, or a bag of pistachio nuts, whichever is more convenient for you (note how accommodating I am).

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Founder Across Time & Space
United States United States
I am in the process of morphing from a software developer into a portrayer of Mark Twain. My monologue (or one-man play, entitled "The Adventures of Mark Twain: As Told By Himself" and set in 1896) features Twain giving an overview of his life up till then. The performance includes the relating of interesting experiences and humorous anecdotes from Twain's boyhood and youth, his time as a riverboat pilot, his wild and woolly adventures in the Territory of Nevada and California, and experiences as a writer and world traveler, including recollections of meetings with many of the famous and powerful of the 19th century - royalty, business magnates, fellow authors, as well as intimate glimpses into his home life (his parents, siblings, wife, and children).

Peripatetic and picaresque, I have lived in eight states; specifically, besides my native California (where I was born and where I now again reside) in chronological order: New York, Montana, Alaska, Oklahoma, Wisconsin, Idaho, and Missouri.

I am also a writer of both fiction (for which I use a nom de plume, "Blackbird Crow Raven", as a nod to my Native American heritage - I am "½ Cowboy, ½ Indian") and nonfiction, including a two-volume social and cultural history of the U.S. which covers important events from 1620-2006: http://www.lulu.com/spotlight/blackbirdcraven

Comments and Discussions

 
GeneralMy vote of 5 Pin
F. Aro10-Jun-14 11:35
professionalF. Aro10-Jun-14 11:35 
GeneralRe: My vote of 5 Pin
B. Clay Shannon10-Jun-14 11:37
professionalB. Clay Shannon10-Jun-14 11:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.