Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android running really slow in debug mode [duplicate]

Possible Duplicate:
Slow Android emulator

I am trying to run an android application in debug mode in eclipse and it is really slow. How can I improve the performance?

like image 229
user31820 Avatar asked May 24 '12 16:05

user31820


People also ask

Is running in debug mode slower?

debug code runs a lot slower than release - Visual Studio Feedback.

Why is Android Studio running so slow?

According to Android Studio's official system requirements, it takes at minimum 3 GB RAM to run smoothly. Honestly, its a lot and I believe that is the biggest cause of being it too slow all the time. The android developers are always complaining about the speed of Android Studio and how its slow ALL THE TIME.

Why are method breakpoints slow?

Method breakpoints will slow down debugger a lot because of the JVM design, they are expensive to evaluate. Remove method breakpoints and consider using the regular line breakpoints. To verify that you don't have any method breakpoints open .

What does debug mode do on Android?

In short, USB Debugging is a way for an Android device to communicate with the Android SDK (Software Developer Kit) over a USB connection. It allows an Android device to receive commands, files, and the like from the PC, and allows the PC to pull crucial information like log files from the Android device.


2 Answers

Start your app without debugging and only if you have reached a point where it gets interesting for debugging, then connect your debugger using DDMS perspective -> device list -> debug process button.

Edited in 2014: Nowadays I would recommend trying the Genymotion Android virtualization. In contrast to the original Android emulator it does not emulate the core of the Android device, but instead runs it as x86 code in a virtualized system. That is typically faster. In addition it brings some features the original emulator simply does not have (like map based GPS position selection).

like image 89
Bananeweizen Avatar answered Sep 17 '22 19:09

Bananeweizen


It usually happens in Emulator, especially when you are reading/writing files, making calls to web-server and/or the size of your .apk file increases (large apk size causes slow installation). The best solution is to use a real device which will speed-up the installation process and enhance the overall performance of your app

like image 42
waqaslam Avatar answered Sep 21 '22 19:09

waqaslam