I am writing an android application involving writing database. Is there any method that can view the .db file in device beside rooting my machine??? I have tried using questoid sqlite manager and the data/data/(my application name)/.db cannot be opened. The method seem to be used for emulator and rooted device only.
ps I am using a unrooted device for debugging.
Here is the cap screen for DDMS
Yes , there are 2 methods from which u can view ur db data :
Go To DDMS -> Data -> Data -> Select ur Package ->Databases -> Pull them Out and view with SQlite Broswer
OR
Install Root Apk in ur bluestack and view in device or emulator itself..
From Command Prompt you can try this
Open cmd
Go into 'Platform tools'
Type 'adb shell'
su
Press 'Allow' on device
chmod 777 /data /data/data /data/data/com.application.package /data/data/com.application.package/*
Open DDMS view in Eclipse and from there open 'FileExplorer' to get your desired file
In your manifest file, add a property 'debuggable=true' in application tag. Then find your database in your given path.
I assume you mean for debugging?
You could copy the database file to a non-private directory (for example into the one returned by Context.getExternalFilesDir()
. Afterwards you can useadb pull
to copy it to your development machine.
Install this APK into your emulator and read your DB file and also add,update,delete record of your database
You can view (visualize) the data in the .db file by using the software called "DB Browser for SQLITE"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.