ddms

ADB, Wifi and Eclipse: how I can configure?

僤鯓⒐⒋嵵緔 提交于 2019-11-29 19:36:46
Recently I see that is possible to debug app development by use WIFI instead of USB debug method. I make a search and I found an app called abdWireless but I have a problem. How I can tell to Eclipse to connect via Wifi method? I think that it is an automatic process, but on start debug it open the Emulator. Someone? :) Bye inazaruk First, run 'adb connect ip:port', like adb connect <phone-ip-address> , from console/terminal (with your IP address and port of cause). This makes adb service to connect to your device via network. Port 5555 is used by default if no port number is specified. Then

Locating and remedying cause of large heap size

别来无恙 提交于 2019-11-29 19:11:14
I'm trying to work out why my app is using so much memory. I often see it using between 15 and 18MB, which is substantially higher than I'd expect. I took a look at the heap size via DDMS and saw this: That looked a tad suspicous because my app doesn't deal with large images at all. In fact the total sum of the drawables in my app is about 250KB. So I created a heap dump and used MAT to locate where all this memory was going. byte[] arrays were by far the greatest consumer, so I drilled down and noticed the following: I have absolutely no idea why sPreloadedDrawables is responsible for such a

Eclipse Hangs in DDMS post-create init

家住魔仙堡 提交于 2019-11-29 15:57:41
问题 From last two days, eclipse started showing wired behaviour. Its goes in infinte process of DDMS post-create init, And if i try to run the application then Eclipse got hanged. I have tried to install from scratch with eclipse 6.2 and eclipse 7.0, but No luck. Is anybody else facing this problem, and got any solution then please share with me. 回答1: I had this problem, it was due to the presence of the file .lock in the .metadata folder of my workspace. I don't know if this is your problem, but

Android DDMS如何使用?

我们两清 提交于 2019-11-29 14:06:34
DDMS 的全称是Dalvik Debug Monitor Service,它为我们提供例如:为测试设备截屏,针对特定的进程查看正在运行的线程以及堆信息、Logcat、广播状态信息、模拟电话呼叫、接收 SMS、虚拟地理坐标等等。 如何启动 DDMS DDMS 工具存放在SDK – tools/路径下,启动DDMS方法如下: 直接双击ddms.bat运行; 在Eclipes调试程序的过程中启动DDMS,在Eclipes中的界面如下: 选择“Other”,界面如下: 双击DDMS就可以启动了。 DDMS对Emulator和外接测试机有同等效用。如果系统检测到它们(VM)同时运行,那么DDMS将会默认指向 Emulator。以上2种启动后的操作有些不一样,建议分别尝试下。 DDMS 的工作原理 DDMS将搭建起IDE与测试终端(Emulator 或者connected device)的链接,它们应用各自独立的端口监听调试器的信息,DDMS可以实时监测到测试终端的连接情况。当有新的测试终端连接后,DDMS将捕捉到 终端的ID,并通过adb建立调试器,从而实现发送指令到测试终端的目的。 DDMS监听第一个终端App进程的端口为8600,APP进程将分配8601,如果有更多终端或者更多APP进程将按照这个顺序依次类推。DDMS通过 8700端口(”base port”)接收所有终端的指令。

Trying to run Android JUnit tests in Eclipse fails?

泄露秘密 提交于 2019-11-29 13:38:58
I have seen all the examples on the web and it seems real simple. I have a bare-bones app that displays a string. I have a a Android JUnit test project that I created when the app was being created (eclipse asked if I wanted to create a test app). When I run the test app (Run As --- Android JUnit) I see the following in the console.... [2010-02-27 00:45:03 - SimpleCalculatorTest]Launching instrumentation android.test.InstrumentationTestRunner on device emulator-5554 [2010-02-27 00:45:12 - SimpleCalculatorTest]Test run complete I do not see any of the code in the testcase being called. My

Eclipse的DDMS找不到设备

怎甘沉沦 提交于 2019-11-29 12:03:54
前几天Eclipse中连接手机还是正常的,今天突然发现ddms中找不到设备了,reset adb总是提示: [2013-01-05 14:55:22 - adb] ADB server didn't ACK [2013-01-05 14:55:22 - adb] * failed to start daemon * 尝试adb kill-server/ adb start-server没有作用,后来在网上看到http://stackoverflow.com/questions/5703550/my-eclipse-adb-server-didnt-ack-failed-to-start-daemon,网上有个做法:check if any application is using Port 5037 use this netstat -a -n -o |findstr "5037",果然,发现wandoujia_daemon把端口占用了,果断kill豌豆荚,reset adb,搞定! 以后千万记得kill wandoujia 来源: oschina 链接: https://my.oschina.net/u/77646/blog/100087

Change file permissions in DDMS (Android)

a 夏天 提交于 2019-11-29 08:22:25
I'm trying to test the behavior of my application when it cannot access some files due to missing permissions. Is it possible to change file/folder permissions on an android emulator using FileExplorer in DDMS perspective? To change permissions in the emulator you need to use the adb shell command from your adroid-sdk platform-tools. In the android shell you can enter the command su to get root access. Now you can see and change the permissions with the normal unix commands chmod Note , that the system folder in Android is mounted read-only. You would have to remout it read-write after this

How to automate the DDMS snapshot mechanism?

删除回忆录丶 提交于 2019-11-29 07:53:08
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. laalto 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. To analyze the heap dumps you can use e.g. jhat or MAT. Before that you need to run hprof-conv

Can't access data folder in the File Explorer of DDMS using a Nexus One!

做~自己de王妃 提交于 2019-11-29 06:55:45
问题 I have my Nexus One connected with the USB. When I visit the File Explorer of the DDMS, if I click on the "data" folder the little plus near the name "data" disappear for 2-6 seconds and then reappear but the contenct of the folder "data" is not showed! Here some other information: the folder data has permissions drwxrwx--x the OS of my PC is Windows XP Eclipse v. 3.5.2 Android SDK 1.6 回答1: If the adbd daemon is running as root, you can browse /data using adb-based tools such as the DDMS file

解决Eclipse进行Android开发时logcat不显示问题-使用DDMS

懵懂的女人 提交于 2019-11-29 05:35:48
很多时候遇到这样的情况,代码制作完成以后,想在模拟器上进行调试,于是Run as Android application,郁闷的是logcat中不显示任何内容 解决办法: 1.最直接的办法关闭Eclipse,重启 2.打开DDMS视图,在左侧“Devices”点击模拟器的名称"emulator-5554",logcat就会显示出消失的log日志 如何打开DDMS 1.如下图所示,在“Open Perspective”(打开视图选项)中会有"DDMS"图标,单击“DDMS”图标即可 2.在devices区域选择模拟器,logcat中则会显示出改模拟器运行的日志 样也可以解决logcat日志不显示问题。 转载至 http://blog.csdn.net/android_robot/article/details/6903736 来源: http://www.cnblogs.com/draem0507/archive/2013/04/28/3049256.html