How to retrieve the sandbox of my app using Eclipse from my device?

≯℡__Kan透↙ 提交于 2020-01-02 10:24:12

问题


I have an android app which uses sharedPreferences.

I run the app in my android device using Eclipse

I would like to pull the entire sandbox from the device to desktop so that I can manually see the contents of the sharedPreferences.

I clicked DDMS and clicked FileExplorer and saw data folder But its empty.

Any help is appreciated ! Thanks in advance !


回答1:


If device is rooted may be it's possible. But in general you can not retrieve the sandbox of your app from your device to pc.

But you can achieve your goal which is getting the sandbox of your app by running your app on Android Virtual Device(AVD).Once the app is installed in AVD.

Switch to DDMS Perspective in Eclipse by choosing Window -> Open Perspective -> DDMS

Below is a sample DDMS screen

In the right side tab choose File Explorer then choose data -> data -> then see where is you package select it and press Pull a file from device button which is the first button on the top left side of image and a dialog box will come like below image choose the folder and the contents of your whole package will be saved

Now you can open the chosen folder and you can see you apps sandbox contents there



来源:https://stackoverflow.com/questions/25650419/how-to-retrieve-the-sandbox-of-my-app-using-eclipse-from-my-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!