android-debug

How to use Monitor (DDMS) tool to debug application

你。 提交于 2019-12-31 08:34:08
问题 I'm switching my development environment from Eclipse to Android Studio these days. And I really enjoy its autocompletion and many other features this IDE provide. However, I have some problem when doing debugging. I hope to use Monitor tool which this IDE provided, self-included DDMS and very nice visual interface to track memory usage, thread condition and so on. But I can't find a way that this could support step by step using breakpoints I have to create (That red dot in editor) I can

findPreference(java.lang.CharSequence) is deprecated

China☆狼群 提交于 2019-12-30 11:24:52
问题 It gives me the error "findPreference(java.lang.CharSequence) is deprecated" .Currently, I am targeting API 10 and above for my application. Any kind of help to resolve this will be appreciated. public class SettingsActivity extends PreferenceActivity implements Preference.OnPreferenceChangeListener { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Add 'general' preferences, defined in the XML file // TODO: Add preferences from XML

findPreference(java.lang.CharSequence) is deprecated

荒凉一梦 提交于 2019-12-30 11:24:26
问题 It gives me the error "findPreference(java.lang.CharSequence) is deprecated" .Currently, I am targeting API 10 and above for my application. Any kind of help to resolve this will be appreciated. public class SettingsActivity extends PreferenceActivity implements Preference.OnPreferenceChangeListener { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Add 'general' preferences, defined in the XML file // TODO: Add preferences from XML

How to debug in Android Studio using adb over WiFi

て烟熏妆下的殇ゞ 提交于 2019-12-28 07:35:09
问题 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 回答1: 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

Why can't I debug a Delphi XE7 Android app on my device?

筅森魡賤 提交于 2019-12-24 11:53:38
问题 I am able to debug on an Android Emulator, but when I want to debug on ASUS Memorypad 7 it doesn't work. After I hit cancel it gives the following message: Unable to start gdbserver on port '64311'. Port is already in use. I have changed the port several times in the Run parameters, but it still gives the same message. 回答1: Try restarting everything first. Then follow Embarcadero`s guide: Unable to start gdbserver on port : Port is already in use where is the port number being used by the

signed apk Parse error when parsing manifest

混江龙づ霸主 提交于 2019-12-24 07:14:35
问题 When I try to install my signed apk I get a parse error (see logcat). When I install the apk signed with default debug key everything is okay. this is the logcat output: 08-28 17:12:47.267 23828-23828/com.android.packageinstaller W/PackageInstaller: Parse error when parsing manifest. Discontinuing installation 08-28 17:12:47.267 23828-23828/com.android.packageinstaller W/PackageParser: Skipping dir: /mnt/shell/emulated/0/vertretungsplan-2.0.0.apk 08-28 17:12:47.287 23828-23828/com.android

Android Studio 2.0 “waiting for the debugger to attach”

可紊 提交于 2019-12-23 22:22:32
问题 Since I've upgraded Android Studio to 2.0, I have been not able to debug. It hangs with "waiting for the debugger to attach" on the screen. Do you have any idea why this is happening? 回答1: This is a common scenario. Restart your Android Studio and reconnect your device. I was having the same issue, except I was running into it with the Android Emulator. I figured out that if you put your computer to sleep while Android Studio or the emulator are running, that messes up the connection between

Android Studio - Slow debug, sometimes stuck on “Waiting for debugger”, SIGSEGV crashes

橙三吉。 提交于 2019-12-22 05:57:08
问题 This may come out as too broad a question, but this issue(s) is driving me nuts and I'd appreciate some help: It seems that with each new Android Studio version, debugging gets more and more impossible. I'm experiencing the following issues: Very slow debugging overall. Stepping over is a drag. A high precentage of failed debugger connection attempts, where the device is hanging on "Waiting for debugger". SIGSEGV "crashes", where the debugger would halt on a SIGSEGV on a random place

Device not Recognize AVD Device on Usb Debugging

女生的网名这么多〃 提交于 2019-12-21 19:50:58
问题 My Company launches new Android study Tab manufactured by China's company . I am facing a problem for testing my app on this Tab. I can upgrade Operating System of Tab using drivers. But I am unable to use device as a AVD. I switched on the usb debugging from Developer's option. Is there difference between drivers for upgrading operating system and using device as a AVD? how can I use my device for Debugging? OS- Jellybean 4.1, Windows 7. thanks 回答1: It maybe due to adb driver for your phone

How to debug accessibility service?

谁说我不能喝 提交于 2019-12-21 09:24:54
问题 I have some problem with debugging AccessibilityService and can not find a solution - with every deployment/debug from Eclipse the service is not restarted automatically and it requires the manual action of restarting the service. What I am forced to do now: I am adding some new code and deploying/debugging with Eclipse. Application is deployed correctly and started but the new version of service is not started (messages from service are not shown and breakpoints are not working). I am