Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio and android device monitor

I just switched from Eclipse to Android Studio. For what I saw since now the new IDE has a lot more features than Eclipse, and I like using the new IDE for my app development work.

I just can't understand one thing: in Eclipse, there is the very useful DDMS perspective, from where you read Logcat and do a lot of other things, like using the very useful dump view hierarchy function, which allows you to take a dump of the UI and inspect it to understand what is shown where in your layout.

I'm not seeing nothing similar in Android Studio, and after making a lot of research it seem that the only way you have to do this is opening the Android device monitor from the "Tools" menu.

But doing this way the ADB connection get broken, because it is being used by Android Studio, and Android Device Monitor wants to use it. The result is that if you are debugging your app you can't open android device monitor unless you want to lose your debug status.

I think this is not acceptable and I'm sure there must be some better way to use Android Device Monitor tools together with Android, is that possible?

Thank you

like image 428
Apperside Avatar asked Apr 07 '15 09:04

Apperside


People also ask

What is the purpose of Android device monitor in Android Studio?

To inspect . trace files captured by instrumenting your app with the Debug class, record new method traces, export . trace files, and inspect real-time CPU usage of your app's processes, use the Android Studio CPU profiler.

Where is the Android device monitor in Android Studio?

To start Device Monitor: From Android Studio, choose Tools > Android Device Monitor or click the Android Device Monitor icon .

What is an Android device monitor?

Android Device Monitor is a stand-alone tool that provides a graphical user interface for several Android application debugging and analysis tools. The Monitor tool does not require installation of a integrated development environment, such as Eclipse, and encapsulates the following tools: DDMS. Tracer for OpenGL ES.

Can Android Studio run on Android device?

To let Android Studio communicate with your Android device, you must enable USB debugging in the Developer options settings of the device. To show developer options and enable USB debugging: On your Android device, tap Settings > About phone. Tap Build number seven times.


1 Answers

Actually I found a solution, I don't know if it is the best way (I keep thinking that android studio MUST integrate device monitor in a better way )

As stated in the question, starting device monitor from the menu tools causes android studio disconnect the device, but if you open the android studio's built in terminal (View > Tool Windows > terminal) and just type "monitor" it starts device monitor without detaching the device from android studio (you will get a warning on device monitor saying that there was a problem attaching the debugger, but don't care about that)

hope this will help some one

like image 184
Apperside Avatar answered Sep 27 '22 19:09

Apperside