ddms

Could not open Selected VM debug port (8700). Make sure you do not have another instance of DDMS or of the eclipse plugin running

牧云@^-^@ 提交于 2019-12-22 10:06:15
问题 I'm trying to execute an android program in eclipse kepler. However, every time I execute I get this message. I did what everyone said about this problem like: - Making sure there is a line on windows Host file that contain this line: 127.0.0.1 localhost - Going to Window -> Preferences -> Android -> DDMS and: 1. Setting local debugger port to 8601 2. Check the box Use ADBHOST and the value should be 127.0.0.1 However, none of these things fixed my problem. Note: I'm using windows 8.1. 回答1:

Android, the standalone version of traceview is deprecated

笑着哭i 提交于 2019-12-22 05:41:10
问题 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

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

﹥>﹥吖頭↗ 提交于 2019-12-22 05:24:08
问题 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

DDMS Not Showing Threads From Device

允我心安 提交于 2019-12-22 01:28:07
问题 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.

How to connect Android to PC

匆匆过客 提交于 2019-12-21 12:35:55
问题 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. 回答1: 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 回答2: You have to install

how can i see how much memory my app is using out of its VM budget?

℡╲_俬逩灬. 提交于 2019-12-21 09:28:36
问题 I've looked in DDMS but didn't see anything. Thanks. 回答1: You should have clicked "Update Heap" button in DDMS in Devices view. 回答2: You see only about 3Mb (which is great btw) because the VM allocates just as much as it needs. If you start loading images in your app you'll see it grow. When it reaches 16 (for 320x480 devices) or 24 (for larger devices) Mb, you'll get an OutOfMemory error 回答3: sergiu posted some code here: How do I detect the heap size usage of an android application 来源:

Trying to run Android JUnit tests in Eclipse fails?

≡放荡痞女 提交于 2019-12-18 07:39:18
问题 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 -

How to debug signed Android app from Eclipse?

为君一笑 提交于 2019-12-18 02:16:26
问题 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...? 回答1: 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. 回答2: When device

How to debug signed Android app from Eclipse?

倖福魔咒の 提交于 2019-12-18 02:15:29
问题 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...? 回答1: 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. 回答2: When device

How can I read my database from DDMS

末鹿安然 提交于 2019-12-17 20:15:17
问题 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? 回答1: 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 回答2: You need to read SQLite records. In order to read your SQLite records you must run the project in your emulator and NOT in