Can't see the data in emulator DDMS of android Eclipse - android

I have been trying to create the app with sqlite db using cordova-2.9.0. I can't see the //data/data/ in emulator DDMS of android Eclipse.
Could anybody guide to me.
thanks and regards
brite

You have to bring up the File Explorer View from the Android View options.
Window -> Show View -> Android -> File Explorer.
And then, go to the Devices View and select the device from the list. (You should see the device in this screen if it's connected in Debug mode)

Related

How To snapshot sd card memory in Android emulator?

I want to make two snapshots in Android emulator.
The first is before running an app.
The second one is after running the app.
I want to see the following changes:
New files added
Files that have been removed
changes in existing files.
I tried to search a command in adb but there isn't something concrete.
I'm searching something like the program regshot but for android.
Thanks.
Open android studio,
1.select Android device monitor from toolbar.
2.Select your emulator from left side pane.
3.For screenshot,in left side pane selection screen-capture option(camera icon).
For files, select file explorer tab from right side pane.
Select storage option --> SdCard
I hope it helps you.

Android : View SQLite Database

I'm running Android Studio 1.3 and working on tutorial app. I'm using GenyMotion for testing purpose. I have written some code to create a database. Now I want to see whether that database has been created or not. If yes then where it is stored. In Eclipse we used to have DDMS Monitor but no such thing is present in Android Studio. So How to do so?
Easiest way is using Android Device Monitor to get the database file and SQLite DataBase Browser to view the file while still using Android Studio to program android.
1) Run and launch database app with Android emulator from Android Studio.
2) Run Android Device Monitor. How to run?; Go to [your_folder] > sdk >tools. You can see monitor.bat in that folder. shift + right click inside the folder and select "Open command window here". This action will launch command prompt. type monitor and Android Device Monitor will be launched.(There are other ways to open this too. Search it)
3) Select the emulator that you are currently running. Then Go to data>data>[your_app_package_name]>databases
4) Click on the icon (located at top right corner) (hover on the icon and you will see "pull a file from the device") and save anywhere you like
5) Launch SQLite DataBase Browser. Drag and drop the file that you just saved into that Browser. (You can view the database using any SQLite browser of your choice)
6) Go to Browse Data tab and select your table to view.

Where can I find the file explorer in Android studio 1.0.1?

I found a lot of similar questions to mine and everyone tells me it's under Tools > Android > Android Device Monitor. I did this and there I have to select the file explorer tab, the problem is there is no such tab. The only thing I see is a list with my devices and a logcat. Anyone knows where I can find the file explorer in Android studio because I don't see it in my DDMS.
Thanks in Advance!
If you are searching for the file explorer for your device/emulator:
Tool > Android > Android Device Monitor. Then you see the list of devices on the left. Click the device you want to explore, and then you can select the File Explorer Tab.
If you can't find it, you have probably closed it. You can reopen it by pressing the small android logo on the right side of the window, or Window > Reset perspective.
Click on green Android icon. It will open Android Device Monitor.
Alternatively, you can open Android Device Monitorby following way:
Now click on file explorer.
If you closed file explorer by mistake, you can open it by clicking
Window -> Reset Perspective

Android Studio - Android Device Monitor - Empty View

I am trying to use the Android Device Monitor within Android Studio, but somehow I managed to remove all views.
I have tried resetting the perspectives, Window->Show View->(Any View), and even re-installing Android Studio but nothing shows up.
Does anyone know how to reset the Device Monitor back to it's default views? (With the devices on the left, and the heap/threads/allocation views on the right.)
Thanks for your help!
I've experienced this same problem by using Window -> Reset Perspective. One should expect this to fix this issue, not break it. Go figure.
In any case, the DDMS workspace preferences are stored in %USERPROFILE%\.android\monitor-workspace (e.g. C:\Users\my_user\.android\monitor-workspace).
Just delete that folder and you're good to go.
Note that you'll need to enable 'show hidden files' in the finder if you are on a mac. Then, the workspace directory is in users/your_username/.android/monitor-workspace.
See http://ianlunn.co.uk/articles/quickly-showhide-hidden-files-mac-os-x-mavericks/ for how to show hidden files.
On Windows:
Go to C:\users\my_user\.android\monitor-workspace)
Close android device monitor
Delete all files/folders inside of monitor-workspace folder
Run android device monitor again
Where "my_user" is your user folder.
That screenshot looks like you are running Windows. So, you could go to C:\Users\user3106174\ and delete the directory named .android (or something similar).

how to view Android application Database running on my phone

I am installing and running an android application on my phone and for some testing purpose i want to see the databases of my application that is on my phone.
now my question how to get those databases and the tables????
please reply
thank you in advance.....
To view the contents of your local database you need to download a software called Sqlite Studio: http://sqlitestudio.one.pl/
1.) Download and install Sqlite Studio on your computer
2.) Connect your phone to your computer, make sure you turn on USB Debugging. USB Debugging can be activated from Settings -> Applications -> USB Debugging (or Settings -> Developer Options -> USB Debugging if you are using Ice cream sandwich).
3.) Open DDMS view in Eclipse and open the File Explorer tab in DDMS and then go to data -> data -> (name-of-your-application) -> databases. Now pull the data file from the databases folder onto your computer.
4.) Open Sqlite Studio and import the data file that you have just pulled from your android phone.
5.) View the contents of your database!
Hope this helped. Don't hesitate to clarify if you didn't understand!
The steps described by Vishwa is correct if we run on emulator. But for real devices we don't have access to data folder using DDMS. You need to have a phone with root access in order to browse the data folder on an Android phone. That means either you have a developer device (ADP1 or an ION from Google I/O) or you've found a way to 'root' your phone some other way.

Categories

Resources