ddms

Unable to view HTML trace report generated by Systrace tool in Android SDK

五迷三道 提交于 2019-11-29 05:03:02
问题 I am trying to generate trace reports with Systrace tool in the Android SDK, but I cant view the report in the browser. It is blank and does not contain any information. I read in some forums that I need to open the report in Chrome browser, I opened it with Chrome as well but the report is blank. I have enabled USB Debugging from the Developer Options and device is running Android 4.2 and I am using DDMS tool from the Android SDK to generate the traces. http://developer.android.com/tools

How to debug signed Android app from Eclipse?

邮差的信 提交于 2019-11-28 23:16:11
Android 2.2. I need to debug my signed APK on my Nexus S. How can this be done using Eclipse? I start the app on my phone and then...? Set the debuggable=true in the manifest, export, install and sign the the app. Connect the device via USB, enable USB debugging. Then open the DDMS perspective, select the device and attach to your app's process (you will see the package name listed). If you have a rooted device, you can connect to any process if adb is running as root. When device connect to your eclipse running mechine , set debuggable=true in manifest file and enable debug mode in android

抓取Android APP崩溃和无响应日志的小工具

被刻印的时光 ゝ 提交于 2019-11-28 22:47:47
前言 在Android APP的测试过程中经常遇到crash和anr,开发人员习惯通过eclipse或者eclipse的ddms组件进行捕抓日志,测试人员常通过在dos窗口下adb命令的方式来抓取日志。前者的缺点是启动时非常耗时,后者呢则每次都要写命令也比较麻烦(需要截图时也存在这个问题)。 针对这样的情况,本文分享一个通过adb程序与bat命令组合的技巧来抓取日志,只要3~5秒即可获取崩溃日志,非常快捷。 1. 准备工作 一、安装JDK(好像不装也没关系,未实测)和ADB(V1.0.31版本或以上),网上很多指导方法,这里就赘述了。 二、在PATH环境变量中添加ADB路径。这样就能在任意地方调用ADB命令,如adb.exe的位置在c:\adb\adb.exe,则在path中加入c:\adb。 2. 制作捕获日志的批命令 一、制作捕获crash异常的批命令 将以下命令复制,制作成logcat.bat文件。logcat.bat可以放置任意位置(如:桌面)。 1 2 3 4 5 6 7 @ECHO OFF for /f "tokens=2 delims==" %%a in ( 'wmic OS Get localdatetime /value' ) do set "dt=%%a" SET timeStamp=%dt:~0,4%-%dt:~4,2%-%dt:~6,2%_%dt:~8,2%

Eclipse连接android模拟器

拟墨画扇 提交于 2019-11-28 22:11:43
1、打开eclipse 2、打开MuMu模拟器 3、去到MuMu模拟器 adb_server.exe 文件所在 目录: MuMu模拟器安装目录\mumu\emulator\nemu\vmonitor\bin 4、 按住Shift + 单击右键 ---》打开PowerShell窗口“ 在打开的窗口中输入 : .\adb_server.exe connect 127.0.0.1:7555如果出现以下提示表示连接成功:> .\adb_server.exe connect 127.0.0.1:7555adb server is out of date. killing...* daemon started successfully *connected to 127.0.0.1:7555 5、连接调试:打开eclipse -> windows -》打开 perspective ->DDMS 或 在Eclipse上, 点击 Window > Open Perspective > Other... > DDMS . 即可启动DDMS. 或者运行命令行 ddms (or ./ddms on Mac/Linux) from the tools/ directory. (或如下图所示: 来源: https://www.cnblogs.com/ywf520/p/11429126.html

Eclipse, adb, and ddms not detecting Android Emulator

▼魔方 西西 提交于 2019-11-28 19:24:28
I wanted to try my hand at programming android devices, so I followed the directions from the android website, installed the sdk, the java sdk, and eclipse. My computer is Windows 7 64-Bit, but I have the 32-bit Java SDK and Eclipse installed since hearing that there are issues with the 64-bit versions. I am running the most recent version of the Android sdk, 4.0 R15. I believe followed all of the instructions for installation, but when I load up a sample (Lunar Lander in this case), it loads the emulator, but will not install the app to it. ADB does not show the emulator listed when I use

ADB, Wifi and Eclipse: how I can configure?

大城市里の小女人 提交于 2019-11-28 15:24:27
问题 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 回答1: 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

Locating and remedying cause of large heap size

谁说我不能喝 提交于 2019-11-28 14:35:46
问题 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

How can I read my database from DDMS

北战南征 提交于 2019-11-28 11:25:51
In android how can I read database which is in DDMS? I want to see the data of my database which is stored in DDMS can I do this? Pratik Bhat DDMS--> file explorer-->data--> data--> your package name-->databases Your database should be inside databases folder once you select your database, you will see two icons on the upper tab wherein you can push or pull the database Angelos Mavrogiannakis You need to read SQLite records. In order to read your SQLite records you must run the project in your emulator and NOT in Android Device. If you want to read your SQL records in the actual Android table

how to use ddms for memory leaks in c++ code

冷暖自知 提交于 2019-11-28 09:31:47
how to use android tool DDMS for memory leaks in c++ code i tried, by taking snapshots with NativeHeap enabled, but i am not understanding what snapshots are saying, and symbols are not resolving , no file names and line numbers are shown. Native heap tracking in DDMS is an unsupported "stealth" feature. Getting it to work can be a bit tricky. There's an older discussion on a mailing list that may be useful. If you're receiving data and have the UI up, you're halfway there. :-) DDMS looks for symbols in a specific location which you should be able to override with the ANDROID_SYMBOLS

Android Device Monitor will not launch, either from Android Studio or from Terminal — UnsupportedClassVersionError

一笑奈何 提交于 2019-11-28 08:06:54
I am getting the following error when trying to launch Android Device Monitor from the Tools window in Android Studio on a Mac. and when I open the log file I find an error report very similar to the other SO questions similar to this, esp this one . However, using sudo did not work for me, although I get similar, though much shorter, error data: Macs-MBP:tools macuser$ sudo ./monitor Password: Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/archquery/Main : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang