ddms

dumpsys cpuinfo in Android: Interpreting the results of this command

强颜欢笑 提交于 2019-12-12 13:26:40
问题 I'm looking at the out of the following command "adb shell dumpsys cpuinfo" where I want to know if these reported values are averages over previous time ? D:\Android_Dev\Android_sdk\platform-tools>adb shell dumpsys cpuinfo Load: 4.03 / 3.43 / 2.44 CPU usage from 23770ms to 16630ms ago: 58% 1844/logd: 58% user + 0% kernel / faults: 3 minor 50% 3895/com.google.android.wearable.app:ui: 41% user + 9.3% kernel / faults: 1798 minor 26% 1864/adbd: 2.8% user + 23% kernel / faults: 1243 minor 22%

Android emulator launch failed

爱⌒轻易说出口 提交于 2019-12-12 13:04:16
问题 This is the message I get on the console.I have tried to launch it a lot of times, same message. Thanks. [2014-02-07 15:44:08 - david] Performing t.t.Splash activity launch [2014-02-07 15:44:08 - david] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'slayer' [2014-02-07 15:44:18 - david] Uploading david.apk onto device 'emulator-5554' [2014-02-07 15:44:18 - david] Failed to install david.apk on device 'emulator-5554': Read-only file system [2014-02-07 15

Move an entire folder from windows to Android emulator

梦想的初衷 提交于 2019-12-12 10:42:49
问题 Is it possible to move an entire folder as is from windows to an android emulator? - I am sure the answer to this exists somewhere but I am not able to find it. I can move one file at a time either via adb command line or via ddms but neither gives me the option to move entire folder with multiple folders and files inside and when I try to it gives me this error C:\>adb push C:\Users\peng-lp-10\Desktop\ABC\ /mnt/sdcard/ABC/ cannot stat 'C:\Users\peng-lp-10\Desktop\ABC\': No such file or

How to get my android device name in my android programe?

∥☆過路亽.° 提交于 2019-12-12 09:53:58
问题 I get device names by the command "adb deivces" in command line. Now I want get name in my android device. String serial = null; try { Class<?> c = Class.forName("android.os.SystemProperties"); Method get = c.getMethod("get", String.class); serial = (String) get.invoke(c, "ro.serialno"); System.out.println(serial); } catch (Exception ignored) { } those works fine in my android phone.But my acer a500 tablet gets the real serial number. This is not correspond with the name I get from the adb

Does anyone know how to create a folder tree in the Eclipse DDMS File Explorer?

早过忘川 提交于 2019-12-11 10:47:54
问题 I'm trying to create the path "/package name/databases" under the sdcard folder. Anybody got the secret? 回答1: Are you using fileobj.mkdir() method from File class? Check if the directory already exist if not exist then create it.Refer And don't forget about writing permissions for external storage, WRITE_EXTERNAL_STORAGE . 回答2: Just select the parent folder and click the small + ("New Folder"). Do this again for the next subfolder. 回答3: Creating SD Card Access to your Android SDK Tools folder

Question on DDMS method profiler

泄露秘密 提交于 2019-12-11 02:19:33
问题 I'd like to use the method profiler to see how many times particular methods are executed. However, everything I see in there is rather cryptic. For example, all I'd like to see is how many times method doWork() is called. I simply can't find it. How do I do that? Also, it seems like the android SDK has no documentation on how to use this feature. Does anyone have a guide somewhere? Thanks 回答1: I know it's old question, but googled it when was lookin exacly for this same. Here is some doc:

DDMS missing columns in allocation tracker

≯℡__Kan透↙ 提交于 2019-12-10 22:22:37
问题 In the DDMS view in Eclipse I'm missing all the columns of the second section of the allocation tracker... I can see a list with "alloc order" and "alloc size" and such but clicking on any of those items in the list will not give me any more info in the second half of the screen... In screenshots online I can see that it should tell me which file and even row number is allocating memory, instead I get 4 or 5 items like "at Java.lang.Objec..." ending in ellipsis, but no way to expand that

Native heap not getting updated in DDMS

别说谁变了你拦得住时间么 提交于 2019-12-10 18:04:48
问题 I use DDMS which is started from the command line using ddms.bat. I am able to bring in the native heap tab by setting the native=1 in ddms.cfg. But the problem is that the native heap is not getting updated. What could be wrong? Any suggestions? 来源: https://stackoverflow.com/questions/8806794/native-heap-not-getting-updated-in-ddms

Sdcard Content not visible in DDMS File Explorer Android 6.0

删除回忆录丶 提交于 2019-12-10 11:24:26
问题 Android 6.0 has changed its way to manage sdcard-mounting and that doesn't let show right. Until 5.x we could access to the SDCard Contents via DDMS Perspective (Eclipse) under the hierarchy /mnt/shell/... and now according Documentation under /sdcard/ I can't see any content of this directory under DDMS but in the PC or other Apps (like Astro). What should I set in Eclipse(DDMS) in order to be able to see that content? 回答1: Starting Android 6.0, third-party apps have no ability to see SDCard

Android: No files appearing in File Explorer

僤鯓⒐⒋嵵緔 提交于 2019-12-10 09:56:05
问题 I found out that I couldn't view my Android database files in Eclipse without rooting my phone, so I ended up rooting my Samsung Galaxy SII using the directions here: http://galaxys2root.com/galaxy-s2-root/how-to-root-ics-on-att-galaxy-s2-sgh-i777/ Now when I use the adb shell, I'm able to view all the databases in my /data/data/... folder. But in Eclipse, when I open DDMS and view the File Explorer, I don't see any files. I made sure I selected my device in the "Device" window. Is there a