Posts

Showing posts with the label Emulator

Copy logcat output

If you want to copy the message from logcat and not the other fields like Time, pid, Tag etc, then you can use the command line option. (Eclipse doesn't allow copy of the messages column alone). ./adb -s logcat -v raw raw removes all the information except the messages and prints it out.

Warning on app launch in emulator in MAC

Every time I try to launch my android app on emulator, i get the below warning: Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz. Looks like this can be safely ignored as it's the problem with the emulator using deprecated api. Link: http://groups.google.com/group/android-developers/browse_thread/thread/f10995f2a829229d

Keyboard shortcuts for emulator

run emulator in tools directory of android sdk with param -help-keys. This lists the keyboard shortcuts understood by the emulator in your platform. For windows, the shortcuts displayed will be different than for mac.

Launch cancelled error

You might run into this issue when connecting to the Android emulator/device: Failed to upload <<apk_name>>.apk on device <<device_name>> java.net.ConnectException: Connection refused: connect Launch canceled! 1. Start command prompt and try running the command adb kill-server && adb start-server. (you should cd to the androidsdk\tools directory OR should have added those to the path). 2. If that doesn’t work – kill any instances of adb.exe running, from the task manager. Then restart the adb as told above.

Emulator Error: user data image is used by another process

I frequently encountered the below error: emulator: ERROR: the user data image is used by another emulator. aborting   Once I get this error, I typically restart the emulator and that works most of the times. Sometimes I have to do wipe data for it to start connecting. However searching on google, returned me this link: http://stackoverflow.com/questions/1740834/emulator-problem-in-android The easiest solution that worked for me is to invoke the command below. Best part is you need not restart the emulator, adb kill-server && adb start-server adb executable is part of the tools in your android sdk.