android-debug

Wake up Android with use adb or Eclipse (just before debug)?

霸气de小男生 提交于 2019-11-29 21:47:30
How to wake up Android with use adb - I want to wake up (if asleep) Android terminal before debugging every new version of application. Typical flow is: 1. I do some changes in Eclipse. 2. In the meantime screen goes off or not. 3. I run "debug" and want force screen to wake up. I found a method with "power key" emulation but it does not turn it on but rather toggles the power state. I do not want to add extra code to my application. What are the other methods to do such trivial task, please help. adb shell input keyevent KEYCODE_WAKEUP As described here , this wakes up the device. Behaves

Android : How to analyse the native heap dump?

懵懂的女人 提交于 2019-11-29 08:51:04
I have created a native heap dump file by using the command dumpheap -n <PID> <file> . The file is in human readable format but contains information that is too hard to understand. How can I analyze this file and get useful information out of it? The function address are provided in the place of function names. The mapping is provided at the bottom of the file. Is there any tool to map these and provide meaningful output with function/lib names instead of addresses (load the symbols for libraries/functions). If there isn't one then how does ddms do this? Also how to load the symbols to display

What does it mean with bug report captured in android tablet?

倾然丶 夕夏残阳落幕 提交于 2019-11-29 03:48:40
I was playing around with my tablet and testing my program, when there was a notification that said bug report captured and whether I would like to share it. I had not seen this message before so I clicked Yes, and then I clicked OK on the warning dialog box that asked me to share it only with people I trust. After that the gmail app opened up which had a screenshot of my tablet, as well as a file attached to it called bugreport<some numbers, date and time I think>.txt . I did not send the bug report as I was not sure what it was and where it would go. However my question is, what exactly is

Wake up Android with use adb or Eclipse (just before debug)?

可紊 提交于 2019-11-28 17:33:58
问题 How to wake up Android with use adb - I want to wake up (if asleep) Android terminal before debugging every new version of application. Typical flow is: 1. I do some changes in Eclipse. 2. In the meantime screen goes off or not. 3. I run "debug" and want force screen to wake up. I found a method with "power key" emulation but it does not turn it on but rather toggles the power state. I do not want to add extra code to my application. What are the other methods to do such trivial task, please

Google Maps works fine on Android but I still get an error “Could not find class 'maps.i.k', referenced from method maps.z.ag.a”

拈花ヽ惹草 提交于 2019-11-28 10:52:07
I got Google Maps Android API v2 to work perfectly on my Android Application by downloading the library, adding it to workspace, then referencing it as a library. But I still get this error as soon as the activity containing the Map Fragment starts Could not find class 'maps.i.k', referenced from method maps.z.ag.a By the way I'm using support map fragment This error does not seem to affect me in anyway nor crash the application nor anything, should I bother fixing it ? Added the manifest P.S E_SelectJourney is where I display and use the map <?xml version="1.0" encoding="utf-8"?> <manifest

Debugging with Android Studio stuck at “Waiting For Debugger” forever

随声附和 提交于 2019-11-28 04:02:27
UPDATE The supposed duplicate is a question on being stucking in " Waiting For Debugger " when executing Run , while this question is on being stucking in " Waiting For Debugger " when executing Debug , the steps to produce the problem is different, and the solution(s) are different as well. Whenever I try to use Android Studio's Debug function, the Run status would always stuck at: Launching application: com.astrotek.parashoot.debug/com.astrotek.ptpviewer.StarterActivity. DEVICE SHELL COMMAND: am start -n "com.astrotek.parashoot.debug/com.astrotek.ptpviewer.StarterActivity" -a android.intent

What does it mean with bug report captured in android tablet?

烈酒焚心 提交于 2019-11-27 17:50:28
问题 I was playing around with my tablet and testing my program, when there was a notification that said bug report captured and whether I would like to share it. I had not seen this message before so I clicked Yes, and then I clicked OK on the warning dialog box that asked me to share it only with people I trust. After that the gmail app opened up which had a screenshot of my tablet, as well as a file attached to it called bugreport<some numbers, date and time I think>.txt . I did not send the

How to debug in Android Studio using adb over WiFi

坚强是说给别人听的谎言 提交于 2019-11-27 17:02:53
I'm able to connect to my phone using adb connect, and I can adb shell also. But when I go to Run->Device Chooser, there are no devices there. What should I do to connect my (connected) adb Android Studio? When I plug it in through USB, it shows up on the list You can find the adb tool in /platform-tools/ cd Library/Android/sdk/platform-tools/ You can check your devices using: ./adb devices My result: List of devices attached XXXXXXXXX device Set a TCP port: ./adb shell setprop service.adb.tcp.port 4444 ./adb tcpip 4444 Result message: restarting in TCP mode port: 4444 To init a wifi

How to debug the Android App in release mode using Android studio

别说谁变了你拦得住时间么 提交于 2019-11-27 15:33:32
问题 For some reason I have to run my Android App in release mode.I have to run through the code when running the app just like we use in debug mode. My break points are not hitting when I run in release mode, I have added android:debuggable="true" in manifest. Still the breakpoint is not hitting. Any help. Thanks in Advance 回答1: In your gradle file, you must add debuggable ability in your release flavor. buildTypes { release { debuggable true minifyEnabled false signingConfig signingConfigs

How to debug/reset Android 6.0 permissions?

安稳与你 提交于 2019-11-27 13:01:10
问题 While migrating one of my apps to use the Android 6.0 permissions system, I found it very hard to debug permissions using the emulator. Findings: Disabling a permission in the app info screen doesn't re-show the grant permission dialog when using the requestPermissions() method. Reinstalling the app seems to be the only way to make the app show the grant permission dialog again. What is the proper method to debug permission using the Android emulator? 回答1: It’s actually very easy to debug