ddms

How to debug Android project

梦想的初衷 提交于 2020-01-06 16:18:52
问题 I'm new to the Android framework (using Eclipse) and I have a question about debugging. Recently I did this error in an activity: // The installation button Button button = (Button) findViewById(R.id.preparationInstallButtonID); button.setOnClickListener(this); setContentView(R.layout.preparation); i.e. I tried to add an onclick-event prior the layout had been rendered. This crashed the program, "Sorry, the application xxx has stopped unexpectedly". Running it again, with debug-mode, Eclipse

Can't access android device from DDMS

假装没事ソ 提交于 2020-01-03 04:52:05
问题 My device is showing on DDMS device list but I cannot do anything with it. For example, file explorer shows nothing and log cat is blank. I just tried to take screenshot, and eclipse just crashed. I of course, made the device in debug usb mode. It seems like a device driver problem but I didn't have any problem with upgrading and rooting this phone. Is there anything I need to do to the device to make it communicate with DDMS? UPDATE: I found another visible symptom with my Android device. If

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

Eclipse DDMS window not showing any thing +android

不问归期 提交于 2020-01-02 06:13:14
问题 my Eclipse DDms window not showing anything(empty logcat,empty file explore... etc) while running my app in emulator. Sometime it works if i restart eclipse but not all time. why such type of hanging... 回答1: Even i face the same problem number of times. What i use to do is go to DDMS and click on the emulator name which is displayed in left side of the window under title "Name" in the Devices-view. Now Logcat will begin to display sequence of events. If this doesn't works then reset adb by

Can't bind to local XXXX for debugger

爱⌒轻易说出口 提交于 2020-01-01 08:39:10
问题 I keep getting the Can't bind to local XXXX for debugger message in console, but not for 1 port, for all random ports. I have done what's stated in this question, but with no luck. I'm running Windows 8. In fact, these problems started after the upgrade to Windows 8. [2012-11-02 16:40:41 - ddms] Can't bind to local 8627 for debugger [2012-11-02 16:40:41 - ddms] Can't bind to local 8617 for debugger [2012-11-02 16:40:42 - ddms] Can't bind to local 8605 for debugger [2012-11-02 16:40:42 - ddms]

How to use Monitor (DDMS) tool to debug application

风流意气都作罢 提交于 2019-12-31 08:34:47
问题 I'm switching my development environment from Eclipse to Android Studio these days. And I really enjoy its autocompletion and many other features this IDE provide. However, I have some problem when doing debugging. I hope to use Monitor tool which this IDE provided, self-included DDMS and very nice visual interface to track memory usage, thread condition and so on. But I can't find a way that this could support step by step using breakpoints I have to create (That red dot in editor) I can

How to use Monitor (DDMS) tool to debug application

你。 提交于 2019-12-31 08:34:08
问题 I'm switching my development environment from Eclipse to Android Studio these days. And I really enjoy its autocompletion and many other features this IDE provide. However, I have some problem when doing debugging. I hope to use Monitor tool which this IDE provided, self-included DDMS and very nice visual interface to track memory usage, thread condition and so on. But I can't find a way that this could support step by step using breakpoints I have to create (That red dot in editor) I can

Nexus one not showing in DDMS problem

允我心安 提交于 2019-12-31 04:55:07
问题 I want to run my application in Nexus one.But when i am connecting NEXUS One through USB, it is not showing in the list of DDMS.I searched in internet.One solution was there which says to connect it in other port.I did so but it is of no use.So any one wanna help? 回答1: When deploying on phones from Windows, you need to have the proper driver installed. For the nexus devices you need this google driver: http://developer.android.com/sdk/win-usb.html 回答2: If you are looking for this, USB

Disable Logcat (DDMS) & Run Console automatically opening on any activity

别说谁变了你拦得住时间么 提交于 2019-12-30 06:02:27
问题 I monitor my logcat from outside Android Studio (logcat-color open beside my emulator on another screen/workspace) and would like to stop the Android DDMS view from opening within Android Studio automatically. It takes up screen real estate that I'd prefer to keep for my code. I know that I can remove the view entirely but I'd like to retain access to it for the times that I use it for linking directly to a problematic line of code quickly. I can filter the logcat output to only show 'error'

How to automate the DDMS snapshot mechanism?

情到浓时终转凉″ 提交于 2019-12-29 07:09:04
问题 Does Android DDMS provide APIs ? I need to automate the snapshot mechanism for the native heap. Or is there any post processing tool for analysis DDMS native heap snapshots. 回答1: I assume by snapshot you mean a heap dump. From your app code you can call Debug.dumpHprofData() to dump the data. From a script you can call adb shell am dumpheap <process> <file> where <process> is e.g. your process id or name, and <file> is the dump file name. After that you can adb pull the dump to your computer.