ddms

Android, the standalone version of traceview is deprecated

十年热恋 提交于 2019-12-05 07:53:43
I want to see my traces. 1- In code, I have added these lines of code: // Start trace recording android.os.Debug.startMethodTracing("hc_traceview"); and // Stop trace recording android.os.Debug.stopMethodTracing(); 2- I can see " hc_traceview.terac " in file explorer of DDMS. 3- Based on Viewing Trace Files in Traceview , I ran following command in terminal: @hesam-K5VD:~/Desktop/Eclipse/sdk/tools$ traceview /mnt/sdcard/hc_traceview But out put is: The standalone version of traceview is deprecated. Please use Android Device Monitor (tools/monitor) instead. trace file '/mnt/sdcard/hc_traceview'

How send a message to the emulator using DDMS in Android studio

北城以北 提交于 2019-12-05 06:45:05
i am trying to build a text messaging application in android, the code works, but the only thing wrong about it is that i cannot send messages to the emulator using DDMS. I have pasted my code below, just in case it is necessary, and i have the screen shot immediately after package com.example.oghenekaroedoh.sms; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.telephony.SmsMessage; import android.util.Log; import android.widget.Toast; /** * Created by OGHENEKARO EDOH on 15/04/2015. */ public class

Android: how to debug app's start-up process

梦想与她 提交于 2019-12-05 04:51:19
I am investigating some issues which happen during my app's startup process, but DDMS won't start the debug mode until the process has started, is there a way I can capture the events earlier? I know that this is a couple of years late, but for any future searches: Putting WaitForDebugger into your code is one way. Unlocking developer options (by tapping on the build number in system information on the android device) in Settings allows us to select an application for debugging and then opt to wait for a debugger whenever the program is launched. This allows us do the equivalent of adding and

DDMS Not Showing Threads From Device

匆匆过客 提交于 2019-12-04 22:42:57
I'd like to check for memory leaks in my Android app using the DDMS feature in Eclipse . When I launch an emulated device, the threads display properly for the emulated device, starting with 8600 and up. However, when I connect my Droid to the PC, the device shows up just fine in DDMS. The logcat is generated correctly, and I can view the file structure. However, threads do not display. I get "no client selected" in the Threads pane, and there is no drop-down icon next to the device listing. Do I need to change some particular setting in Eclipse? Is this maybe a driver issue? Eclipse

Android DDMS v22.0.1 unable to generate a systrace using Droid Razor 4.1.2

限于喜欢 提交于 2019-12-04 22:28:47
I've selected several of the trace tags and when I run the trace (from DDMS ) I get the following output: Unexpected error while collecting system trace. Unable to find trace start marker 'TRACE:': error opening /sys/kernel/debug/tracing/options/overwrite: No such file or directory (2) error openi (cuts off the error here) indeed there is no debug file in the kernel directory, but which mechanism will generate the necessary path? It looks like your cellphone is running a boot(kernel) image that does not support systrace. "error opening /sys/kernel/debug/tracing/options/overwrite: No such file

XamarinSQLite教程在Xamarin.Android项目中定位数据库文件

这一生的挚爱 提交于 2019-12-04 19:29:47
XamarinSQLite教程在Xamarin.Android项目中定位数据库文件 实际开发中,经常需要验证数据库操作的正确性。这个时候,需要打开数据库文件,进行确认。下面是如何找到MyDocuments.db文件的具体步骤: (1)在VS的工具栏中找到打开Android设备监视器 (DDMS)按钮,如图1.32所示 (2)单击Open Android Device Monitor (DDMS) 按钮,弹出Android Device Monitor界面,如图1.33所示。 (3)选择File Explorer选项,打开File Explorer面板。在此选项面板中,找到data/com.company.AndroidSQLiteDemo/files/MyDocuments.db,如图1.34所示。 来源: oschina 链接: https://my.oschina.net/u/1585857/blog/1982178

LogCat not displaying TAG “SMS”

徘徊边缘 提交于 2019-12-04 18:27:20
问题 @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Log.e("SMS","Hello World"); //not showing Log.v("SMS","Hello World"); //not showing Log.i("SMS","Hello World"); //not showing Log.d("SMS","Hello World"); //not showing Log.i("sms","Hello World"); //showing } Why the Logging in the Logcat is not working for some line in the above code?? 回答1: There are some tags that don't go to the default buffer, as has been stated.

Thread objects not garbage collected after being finished

强颜欢笑 提交于 2019-12-04 11:26:26
问题 I noticed that my application is leaking memory. This can be seen in DDMS, and I managed to get a OutOfMemoryError. I found the source of the leak. One of the activities has a thread running in the background. This thread is stopped in onDestroy() . It finishes running, as it can be seen in DDMS. Now, if thread is started, the leak occurs, Activity is not garbage collected after being destroyed, because it is referenced by the thread. If thread is not started at all, everything is ok. Here's

Problem Pushing Large File to Emulator/SDcard with Eclipse DDMS

不打扰是莪最后的温柔 提交于 2019-12-04 05:48:15
I am using Eclipse DDMS to push a file over onto my Android Emulator sdcard. I select the file and press Open, a dialog pops up and starts pushing the file. In the view "File Explorer" in the DDMS perspective I can see the sdcard directory and can see my file created in it. Then in the popup the progress meter gets halfway then I get this error in the Console window: [2011-09-22 15:15:56] Failed to push the item(s). [2011-09-22 15:15:56] (null) Then the File Explorer completely refreshes and the file disappears. I know the sdcard is setup for 1G of space and the file I am pushing is only 9M.

How to connect Android to PC

时光总嘲笑我的痴心妄想 提交于 2019-12-04 05:33:32
I'm trying to connect my Samsung Galaxy to PC but ddms tool does not recognize my phone. USB debugging is enabled. What can cause a problem? PS. I'm using Ubuntu 9.10 OS. Thanks. You should add a rule to /etc/udev/rules.d (i.e.: 51-android.rules ): SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666" just in case verify that the id for your phone matches 0x04e8 using lsusb . Once the new rule is added just reload them by $ sudo udevadm control --reload-rules You have to install the ADB/USB driver corresponding to your Android device. Summary: [ -s /etc/udev/rules.d/51-android.rules ] || sudo