When I use the FlurryAgent on a 2.3.4 device I get the following exception:
E/AndroidRuntime: FATAL EXCEPTION: FlurryAgent
android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
In my code I made sure everything that is UI related is done on the UI thread.
I've tried disabling Flurry's exception capture via FlurryAgent.setCaptureUncaughtExceptions(false)
but that did not help.
I find it hard to understand if Flurry is causing this exception or just reporting it, I tend to believe the former as when I comment out all Flurry calls, there is no exception/crash whatsoever.
I use the latest Flurry SDK - 3.2.1
Any ideas?
There is an issue with AsyncTask in the Android SDK previous to Jelly Bean that can cause this problem under certain conditions. Please, take a look at Flurry's support page, there is a workaround.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With