Android emulator SQlite database location in Eclipse

Where does Android Emulator store SQLite database and tables created in your application activity

The easiest way to get to the database is using Eclipse DDMS (Dalvik Debug Monitor Server) Perspective. Android ships with a debugging tool called the Dalvik Debug Monitor Server (DDMS), which provides port-forwarding services, screen capture on the device, thread and heap information on the device, logcat, process, and radio state information, incoming call and SMS spoofing, location data spoofing, and more.

DDMS is integrated into Eclipse and is also shipped in the tools/ directory of the SDK. DDMS works with both the emulator and a connected device. If both are connected and running simultaneously, DDMS defaults to the emulator.

From Eclipse: Click Window > Open Perspective > Other... > DDMS.

In the File Explorer Tab the following path is for your SQLite database:

data > data > your-package-name > databases > your-database-file.

SQLite Database Browser

If you want to view your data easily I would recommend downloading the SQLite Database browser and then drag and drop the database from DDMS file explorer.

Android emulator SQlite database location in Eclipse

No comments:

Post a Comment

NO JUNK, Please try to keep this clean and related to the topic at hand.
Comments are for users to ask questions, collaborate or improve on existing.