Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create log file for Android app

I want to create a log file for my Android app. I need this to debug the random crashes of the applications.

I want to create a function which always get called if there is a unhandelled exception. In the log I want the exception message. Is there any event kind mechanism which will get invoked on unhandelled exception in ANdroid?

like image 216
Jainendra Avatar asked Oct 17 '25 10:10

Jainendra


2 Answers

try to use android Android Acra

Really good thing Please try this.

like image 136
Bhavdip Sagar Avatar answered Oct 19 '25 00:10

Bhavdip Sagar


You can write your own log cat,

when your application is installed on real android device and not connected to Eclipse to get debug details..

Please check Tutorial :Read & Store Log-cat Programmatically in Android

also you may like to check this stack-overflow page I have posted solution code snip and related useful information.

like image 36
swiftBoy Avatar answered Oct 18 '25 22:10

swiftBoy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!