If You are using Emulator means You can easily get the SQLite DB from Emulator..
But You can't get the SQLite DB From Device Easily..
For that you need to Follow the Following steps :
1. Go to Command Prompt and go to the path where you have stored you android-sdk
For Example: cd C:\ANDROID\android-sdk\platform-tools
2. Enter to Adb Shell
For Example: adb shell
3. Next put this command
1|shell@android:/ $ run-as yourPackageName cat /data/data/yourPackageName/databases/DataBase(CorrectName) >/sdcard/anyName
1|shell@android:/ $ exit
4. If you want pull out from phone to Locale means use this
adb pull /sdcard/thatDBname D:\
Take a Look this Image... You can Easily Understand...
1. Go to Command Prompt and go to the path where you have stored you android-sdk
For Example: cd C:\ANDROID\android-sdk\platform-tools
2. Enter to Adb Shell
For Example: adb shell
3. Next put this command
1|shell@android:/ $ run-as yourPackageName cat /data/data/yourPackageName/databases/DataBase(CorrectName) >/sdcard/anyName
1|shell@android:/ $ exit
4. If you want pull out from phone to Locale means use this
adb pull /sdcard/thatDBname D:\
Take a Look this Image... You can Easily Understand...

No comments:
Post a Comment