I have an app that is not in the market place (signed with a debug certificate), but would like to get crash log data, whenever my application crashes. Where can I find a log of why my app crashed?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- how do I log requests and responses for debugging
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
You can use ACRA from this. Including this library to your projects and configuring it, you could receive (into your email or gdocs) their crash reports. Sorry for my bad English.
The way to do this is to implement the
Thread.UncaughtExceptionHandler
interface and pass it toThread.setDefaultUncaughtExceptionHandler()
at the beginning of your Activity'sonCreate()
. Here is the implementation classTopExceptionHandler
.Note We let the Android framework's defaultUEH to handle it.
At the top of your Activity register an instance of above class like this:
This handler saves the trace in a file. When
ReaderScope
restarts next time, it detects the file and prompts the user if he/she wants to email it to the developer.To Email the Stack Trace, execute following code to pack it in an email.
Or you can also use ACRA Error Reporting System.Just Include the ACRA.jar in your project libs and use the below code snippet before your launcher activity class declaration
or You can try this from console:-
If you're using Eclipse, make sure you use debug and not run. Make sure you are in the debug perspective (top right) You may have to hit 'Resume' (F8) a few times for the log to print. The crash log will be in the Logcat window at the bottom- double click for fullscreen and make sure you scroll to the bottom. You'll see red text for errors, the crash trace will be something like
The important parts for this one are
those tell us it was an array out of bounds exception on on line 13 of main.java in the onCrate method.
Use acra crash reporter for android app..Acra lib
Here is another solution for Crash Log.
Android market has tool named "Crash Collector"
check following link for more information
http://kpbird.blogspot.com/2011/08/android-application-crash-logs.html
1) Plug in Phone through USB (w/ Developer Debugging options enabled)
2) Open Terminal and Navigate to your Android SDK (for Mac):
cd ~/Library/Android/sdk/platform-tools
3) Logcat from that directory (in your terminal) to generate a constant flow of logs (for Mac):
./adb logcat
4) Open your app that crashes to generate crash logs
5) Ctrl+C to stop terminal and look for the logs associated with the app that crashes. It may say something like the following:
AndroidRuntime: FATAL EXCEPTION: main