ddms

DDMS is not showing expected output when dumping HPROF file [closed]

微笑、不失礼 提交于 2019-12-02 17:33:44
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 8 years ago . I am trying to use the DDMS in android to see how much memory my app is using but I can't seem to get it to show anything readable. I press dump the

DDMS is not showing expected output when dumping HPROF file [closed]

◇◆丶佛笑我妖孽 提交于 2019-12-02 09:47:07
I am trying to use the DDMS in android to see how much memory my app is using but I can't seem to get it to show anything readable. I press dump the HPROF file and all I get is gibberish: This used to work, but stopped ever since I switched workspaces(old one was corrupt) in eclipse. rioneye Ok so after reading this Memory Analysis for Android I realized that when I re-installed eclipse I forgot to re-install MAT. So now everything works as it should 来源: https://stackoverflow.com/questions/7114935/ddms-is-not-showing-expected-output-when-dumping-hprof-file

Nexus one not showing in DDMS problem

≯℡__Kan透↙ 提交于 2019-12-02 04:56:51
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? 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 Andro Selva If you are looking for this, USB Debugging in Android As you can see, some devices require Drivers to be installed. So better download an

How to access and query the database that is copied to the assets folder?

送分小仙女□ 提交于 2019-12-01 11:52:30
问题 I have read few tutorials where in a pre-existing database is copied to assets folder and write code for copying this database on to the default system path of the application database. package com.example.c1; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android

DDMS not able to send location to emulator

孤者浪人 提交于 2019-12-01 05:44:15
DDMS is not able to send location to the emulator. I have tried sending just the location from DDMS but still the emulator is not able to receive location. The application works properly in the device but its not able to capture location data in the emulator. I am testing on Android 2.2 emulator. Can anyone let me know what can be the issue? I just use the android console via telnet, it always works. Just open a command line and: telnet localhost 5554 5554 is the port number of your emulator, it is usually that but might change, it can be on the window fram of the emulator as PORT:AVD_NAME.

Android 内存监测工具 DDMS --> Heap

[亡魂溺海] 提交于 2019-12-01 05:13:35
用 Heap监测应用进程使用内存情况的步骤如下: 1. 启动eclipse后,切换到DDMS透视图,并确认Devices视图、Heap视图都是打开的; 2. 将手机通过USB链接至电脑,链接时需要确认手机是处于“USB调试”模式,而不是作为“Mass Storage”; 3. 链接成功后,在DDMS的Devices视图中将会显示手机设备的序列号,以及设备中正在运行的部分进程信息; 4. 点击选中想要监测的进程,比如system_process进程; 5. 点击选中Devices视图界面中最上方一排图标中的“Update Heap”图标; 6. 点击Heap视图中的“Cause GC”按钮; 7. 此时在Heap视图中就会看到当前选中的进程的内存使用量的详细情况。 说明: a) 点击“Cause GC”按钮相当于向虚拟机请求了一次gc操作; b) 当内存使用信息第一次显示以后,无须再不断的点击“Cause GC”,Heap视图界面会定时刷新,在对应用的不断的操作过程中就可以看到内存使用的变化; c) 内存使用信息的各项参数根据名称即可知道其意思,在此不再赘述。 如何才能知道我们的程序是否有内存泄漏的可能性呢。这里需要注意一个值:Heap视图中部有一个Type叫做data object,即数据对象,也就是我们的程序中大量存在的类类型的对象。在data object一行中有一列是

Edit shared preferences from DDMS

核能气质少年 提交于 2019-12-01 04:08:09
I want to edit shared preferences values from DDMS, if I double click the file it doen't saves the changes. Do I do something wrong or there is special plugin for that? First, you should probably make sure your app isn't running before doing this. You have to use the File Explorer option. Navigate to data -> com.yourpackage -> shared_pref Click the xml and at the top right click pull . Edit the xml on your computer. Once you're done, click push (also top right). If you pushed the same file to the same device to the same directory, the next time you launch the app, you should see your updated

DDMS not able to send location to emulator

醉酒当歌 提交于 2019-12-01 02:37:31
问题 DDMS is not able to send location to the emulator. I have tried sending just the location from DDMS but still the emulator is not able to receive location. The application works properly in the device but its not able to capture location data in the emulator. I am testing on Android 2.2 emulator. Can anyone let me know what can be the issue? 回答1: I just use the android console via telnet, it always works. Just open a command line and: telnet localhost 5554 5554 is the port number of your

Edit shared preferences from DDMS

戏子无情 提交于 2019-12-01 01:23:30
问题 I want to edit shared preferences values from DDMS, if I double click the file it doen't saves the changes. Do I do something wrong or there is special plugin for that? 回答1: First, you should probably make sure your app isn't running before doing this. You have to use the File Explorer option. Navigate to data -> com.yourpackage -> shared_pref Click the xml and at the top right click pull . Edit the xml on your computer. Once you're done, click push (also top right). If you pushed the same

Android device not showing up in DDMS

大憨熊 提交于 2019-11-30 23:20:38
问题 Running Android 2.2 on a Galaxy S. Host is an OS X 10.6.4 machine. DDMS in Eclipse reports no devices being connected. adb devices -- nothing. I've tried: Rebooting the phone Toggling the USB development mode Plugging/unplugging the cable Restarting the server ( adb kill-server ). The weird thing is that sometimes computer will not detect the phone being attached (no growl notification, not syslog entries) and sometimes it will. Other android devices work. Do you guys have any ideas what else