View on GitHub

Acracadabra

Android crash reports. Detailed. Fast. Direct to your inbox.

Download this project as a .zip file Download this project as a tar.gz file


Acracadabra is a free, open-source Rails app that, together with ACRA, delivers detailed crash reports from your Android applications directly to your email inbox.



After weeks or months of development and testing and lots of blood, sweat and tears, you release your Android app. A few days later, you see a comment about your app crashing in Google Play Store:

This app sucks. Constantly crashes.

You then log in to the Android Developer Console for your app, hoping to get a little more detail. Unfortunately, the user who experienced the crash didn't submit a crash report.

You're stuck.

Maybe you integrated the Google Analytics Android SDK to track your app's exceptions, so you check out the reports for your app.

Can't create handler inside thread that has not called Looper.prepare()

Yes, that's all the detail you get. And it's happened six times in the last two days.

Maybe instead of Google Analytics you chose Flurry.

class java.lang.RuntimeException
Msg: android.os.Handler.<init>:121 (Can't create handler inside thread that has
not called Looper.prepare())

Not much better. Where in your app is this occurring? You use a Handler dozens of places throughout your app.

Enter Acracadabra.

Acracadabra is a free, open-source Rails app that receives ACRA-generated crash reports from Android applications and passes them directly to your email inbox. What's ACRA?

...a library enabling Android Application to automatically post their crash reports to a GoogleDoc form. It is targetted to android applications developers to help them get data from their applications when they crash or behave erroneously.

[It] can be used with your own self-hosted report receiver script.

Acracadabra is a fast-pass to your own "self-hosted report receiver script."

With Acracadabra, you would have received a complete crash report in your email inbox immediately after the app crashed. Here's an excerpt:

java.lang.reflect.InvocationTargetException 
at java.lang.reflect.Constructor.constructNative(Native Method) 
at java.lang.reflect.Constructor.newInstance(Constructor.java:415) 
at android.preference.GenericInflater.createItem(GenericInflater.java:383) 
at android.preference.GenericInflater.onCreateItem(GenericInflater.java:417) 
at android.preference.GenericInflater.createItemFromTag(GenericInflater.java:428) 
at android.preference.GenericInflater.rInflate(GenericInflater.java:481) 
at android.preference.GenericInflater.rInflate(GenericInflater.java:493) 
at android.preference.GenericInflater.inflate(GenericInflater.java:326) 
at android.preference.GenericInflater.inflate(GenericInflater.java:263) 
at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:254) 
at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:447) 
at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:425) 
at com.example.activity.BaseActivity$LogoutTask.doInBackground(BaseActivity.java:255) 
at com.example.activity.BaseActivity$LogoutTask.doInBackground(BaseActivity.java:1) 
at android.os.AsyncTask$2.call(AsyncTask.java:185) 
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306) 
at java.util.concurrent.FutureTask.run(FutureTask.java:138) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581) 
at java.lang.Thread.run(Thread.java:1027) 
Caused by: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() 
at android.os.Handler.(Handler.java:121) 
at android.view.GestureDetector$GestureHandler.(GestureDetector.java:250) 
at android.view.GestureDetector.(GestureDetector.java:370) 
at android.view.GestureDetector.(GestureDetector.java:347) 
at android.view.GestureDetector.(GestureDetector.java:331) 
at android.widget.TextView.(TextView.java:1016) 
at android.widget.EditText.(EditText.java:60) 
at android.widget.EditText.(EditText.java:56) 
at android.preference.EditTextPreference.(EditTextPreference.java:56) 
at android.preference.EditTextPreference.(EditTextPreference.java:71) 

That's more like it.

Check it out. You can be up and running in under 20 minutes.