Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

Sometime, when you install a particular apps in the emulator, it work perfectly fine. So, you install the apps into your phone and/or tablet and it throws an exception when you run it.

Similar, when you install a particular apps in the emulator, it does not work & throws you an exception but when you install the apps into your phone and/or tablet, it was able to run perfectly.

So, my question is how do I know what is the reasons behind why apps exit with exception? Where can I find more information so that I can actually know the reasons why the apps exit with exception?

Example: One can go to a particular folder of the apps and open the logs which tell the user that the apps exit with exception is because it does not have a GPU or it does not have enough RAM and so on.

IMPORTANT: This question is from the end-user point of view. This is NOT a question from a developer point of view. Thank you.

share|improve this question
    
Do you ask this from a user's perspective -- or as a developer (how to catch it)? –  Izzy Dec 3 '12 at 7:00
    
@Izzy From a user's perspective –  Jack Dec 3 '12 at 7:24
1  
OK -- in this case, see my answer below. (To the close-voters: Asked from a user's perspective, this is NOT off-topic, so keep it open ;) –  Izzy Dec 3 '12 at 7:35
    
@Izzy, Thanks for your feedback. I have modify the question so that there will be no mis-understanding of the questions. Thanks :) –  Jack Dec 3 '12 at 9:01
    
possible duplicate of How can I view and examine the Android log? –  Chahk Dec 4 '12 at 14:10
add comment

2 Answers

up vote 3 down vote accepted

If you as a user experience such crashes, and want to help the developer to get them fixed, you can use tools such as aLogcat (free) - logcat or Bug Reporter to catch a log of what happened:

aLogCat Bug Reporter

While aLogCat allows you to restrict the log closer to the crash event (by letting you define what to capture), Bug Reporter enables you to send other useful information along, such as device specifics and the like.

EDIT: As Liam pointed out correctly in his comment, due to permission changes in Jelly Bean (4.1) some of those log viewers where no longer able to see anything but their own log entries. If your device is rooted, the easiest way to get them working again is to convert them into system apps (e.g. with Titanium Backup). If your Android version is 4.0.x or lower, you should not be affected by this.

share|improve this answer
    
Thanks Izzy, the logcat was wonderful except that it is quite slow (probably the log file is too large) –  Jack Dec 4 '12 at 6:00
    
The "logfile" is a ring-buffer, so it has a constant size. I use aLogCat for almost 2 years now (from time to time) and was happy with it, so I took no closer look at alternatives like Gemini Live Logcat, LogViewer Lite (LogCat) and the like, which you might try as well :) –  Izzy Dec 4 '12 at 7:15
2  
Remember: These apps don't work in (I think) 4.1+ without root! –  Liam W Dec 23 '12 at 23:08
    
Yepp -- +1 for that hint, Liam. Not sure whether 4.1 or 4.2, but around that a restriction was established that apps only can see their own logs. But there was some work-around AFAIR. Will check and update my answer then. Thanks for the hint! –  Izzy Dec 23 '12 at 23:14
add comment

Mainly due to hardware differences.

You can use a logcat viewer on Android 2.3 or below to view the logcat from all apps - this will provide the log from the apps which will tell your the exception.

Please be aware that in Jellybean or ICS google stopped apps from reading the logcat from other apps on the device - you can still use adb to see the entire logcat, and can output it to the logcat.log file using this command:

adb logcat > logcat.log
share|improve this answer
    
Wait a minute, you mean that the there is no alternative way to retrieve the logs for Android version higher than 2.3? –  Jack Dec 4 '12 at 5:57
    
Ahm... almost, but to my knowledge this affects only JellyBean and "above" (so ICS/4.0 and lower should still work). Got hard without root, as each app now only can see its own entries in the logs. There was some work-around AFAIR, but I'm not sure if that involved root as well... –  Izzy Dec 4 '12 at 7:19
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.