I want to test out crash report using acra but the first step is I need to simulate a fatal crash in Android using code.
Any idea?
Force crash after some delay like this,
new android.os.Handler().postDelayed( new Runnable() { public void run() { Log.i("tag", "This'll run 10 seconds later"); throw new RuntimeException("This is a crash"); } }, 10000);
Ref-1 & Ref-2