Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android How to verify successful installation of ACRA crash logging

I followed the instructions for adding ACRA to my project as follows:

http://code.google.com/p/acra/wiki/BasicSetup

Aside from waiting for a crash, how can I verify I set up everything properly? Is there a way to get it to log some sort of success message? Or do I have to purposely put in an error that will cause it to crash?

like image 785
gonzobrains Avatar asked Nov 28 '22 14:11

gonzobrains


1 Answers

Throw a RuntimeException.

throw new RuntimeException("Dying on purpose");

Instances of RuntimeException (and its subclasses) are unchecked, so the compiler won't complain.

like image 106
orip Avatar answered Dec 15 '22 14:12

orip