Questions tagged [android-debugging]
33 questions
296
votes
15 answers
Android app crashes when launched in debug mode
When I run in debug mode the app crashes, but when I just run it normally it works.
I think the problem happens when the debugger is attached.
Log:
A/art: art/runtime/jdwp/jdwp_event.cc:661] Check failed: Thread::Current() != GetDebugThread()…
Maxim Rabtsun
- 3,079
- 2
- 7
- 7
11
votes
7 answers
Good strategy to debug this?
Android (4.2.2) application developed in Java on Eclipse, I'm getting a crash but I can't figure out what in my code is causing it . . .
The stack trace doesn't reference any of my own source code . . .
Thread [<1> main] (Suspended (exception…
user316117
- 7,299
- 18
- 70
- 141
7
votes
3 answers
Android Studio 3.0 Logcat continuously showing messages and does not stop
When I start debugging my App in Android Studio 3.0 and open the Logcat, it displays so many messages and warnings, but the problem is, it never stops, even when the debugging is completed and the App is terminated, it still prints so many messages…
geekFromPeshawar
- 171
- 1
- 13
5
votes
9 answers
How to overcome app not installed error when building from Android Studio 3.0?
For giving build for a debug Android app from Android Studio 3.0, it’s not installing in Mobile having Marshmallow and up (in Lollipop not tested).
I have used many solutions from Stack overflow but it’s still not working.
It’s always showing App…
Tanmay Sahoo
- 433
- 1
- 5
- 15
3
votes
2 answers
Shortcut to attach debugger in Android Studio
I know we can press Ctrl + F2 to detach the debugger but is there a shortcut to attach debugger in android studio?
Ashwani Kumar
- 1,251
- 1
- 16
- 25
2
votes
3 answers
build gdb and gdbserver for android
I'm working on 64 bit linux, need to build gdbserver for my aarch64 Android phone.There is prebuilt gdbserver in NDK, but it uses the python in NDK package, not using my system python, I can't install other python plugins.
How to find which --target…
aj3423
- 1,629
- 3
- 21
- 52
2
votes
1 answer
How to find calling thread stack trace from breakpoint?
I have a Thread in my Android code and while debugging, I need to set a breakpoint inside the thread. However, once I am at the breakpoint inside the thread, I can't see the stacktrace of the calling thread. At this point, I usually need to set a…
The Hungry Androider
- 2,158
- 5
- 24
- 45
2
votes
1 answer
How can I get my app to read external text file correctly? Only showing weird characters and diamonds
I'm working on my first app. Got everything set up and working correctly, except displaying a random quote from a text file. Clicking the button shows weird characters (diamonds, question marks, etc) and not the actual text except for the…
Andrew Stephens
- 21
- 2
2
votes
0 answers
Unable to debug on remote android emulator with Visual Studio 2015 with Xamarin
My setup is a Macbook Pro running el Capitan and has the android sdk installed. I have a Windows 7 Pro installation running as a Parallels 11 guest with Visual Studio 2015 and the Xamarin plugin installed. Rather than running the android emulator…
Tony Dail
- 407
- 4
- 6
2
votes
0 answers
Sqlite database insert query issue inside 'try catch' block
I am developing an app(requires person's location) that stores location coordinates against the consumerIds, I have created three fields,namely 1)key_Con_ID, 2) key_Latitude, 3)key_Longitude.
The insert code is inside a 'try' and 'catch'. The 'try'…
Piu
- 21
- 2
2
votes
1 answer
Updated to Android Marshmallow -- now, Android Studio can't target device
When I go to run the application, my device no longer shows up in the chooser dialog. Developer options and USB debugging is still enabled no my phone, and I made sure the target SDK of my application is 23. Anyone else have this problem?
user2892437
- 647
- 8
- 21
2
votes
3 answers
Android debugger not being able to connect to the process (app)
I am using Android Studio 1.5 and currently working on a project. Whenever I am trying to debug or attach the debugger to the app I am working on to fix bugs, the debugger is NOT able to connect; therefore the app freezes on the android device. Note…
ngaspama
- 171
- 2
- 8
1
vote
1 answer
Why am I getting the error "getParentActivityIntent : badActivity name" after committing my Fragment?
I am creating a simple FragmentList App, but for some reason I keep getting the error:
Log.e(TAG, "getParentActivityIntent: bad parentActivityName '" + parentName +
"' in manifest");
In my debugger in Activity.java
This happens…
CodingChap
- 719
- 1
- 5
- 18
1
vote
0 answers
How can I debug an Android device without cable(Not even without the initial connection)
Typical way is
Connect PC to the device with USB Cable.
adb tcpip 5555
adb connect 192.168.xxx.xxx:5555
However, what if the device manufacturer doesn't recommend this way. But connect them directly wirelessly?
What they say is
PC and Device must…
c-an
- 2,036
- 1
- 17
- 46
1
vote
0 answers
Is there any command to launch directory in file manager of android using adb?
I want to open Download folder in my android phone using adb. I have example:
start . /path/to/that/folder command for command-prompt and nautilus /path/to/that/folder for ubuntu terminal.
babloo
- 55
- 1
- 6