Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ACRA with android: How to execute code before crash is reported

Tags:

android

acra

I am using ACRA woth my android app. My question is, when a crash happens, how can I make sure I execute some code before the crash is reported. I mean I would like to add some custom variables when the crash happens so I know what state the app was in?

Please help

Thank you

like image 225
Snake Avatar asked Jan 19 '26 12:01

Snake


1 Answers

Implement your own sender as described here. It can be simply a wrapper around some existing sender, forwarding the sending functionality there.

Inside the sender code, you can take any special actions before actually sending the report.

like image 71
Audrius Meškauskas Avatar answered Jan 22 '26 02:01

Audrius Meškauskas



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!