farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
09/24/15 06:59 AM (9 years ago)

How to find errors without emulator

Hi gang, I have this Android app that keeps crashing and I am not too sure how to troubleshoot it. I have never been able to get the emulator to work so I always used a real device which was fine until now. So my question is, how can I pin-point an error without running the app with an emulator? Thanks, Farcat
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
09/24/15 07:03 AM (9 years ago)
You still use logcat with your device hooked up. LA
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
09/24/15 07:08 AM (9 years ago)
hey LA, Not sure how to fire up the app on the device whilst it is hooked up. Will research it now. Thanks, Farcat
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
09/24/15 07:13 AM (9 years ago)
Make sure you have all the drivers, of your device, downloaded and installed. That's the top reason when I run into the problem. LA
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
09/24/15 07:31 AM (9 years ago)
Got it, thanks LA. I am running on a Mac, which doesn't seem to need drivers. I used to send the .apk to DropBox and then email the link to my phone... Now I can run it, great! Now figuring out the issue. Here is what I get from my Logcat. Am I right to think that it is image related? Possibly one or several that are too large? 09-24 16:21:38.586: I/dalvikvm(25928): at dalvik.system.NativeStart.main(Native Method) 09-24 16:21:38.586: D/skia(25928): --- allocation failed for scaled bitmap 09-24 16:21:38.586: D/AndroidRuntime(25928): Shutting down VM 09-24 16:21:38.586: W/dalvikvm(25928): threadid=1: thread exiting with uncaught exception (group=0x410b3930) Cheers, Farcat
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
09/24/15 07:35 AM (9 years ago)
That's where I would start! LA
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
09/24/15 08:18 AM (9 years ago)
Bingo! The problem was solved by copying images from drawable folder to other folders; drawable-hdpi, etc... Thanks, Farcat
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
09/24/15 08:19 AM (9 years ago)
Awesome! LA
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.