Flurry Agent throwing CalledFromWrongThreadException on Android 2.3.4

When I use FlurryAgent on device 2.3.4, 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 that everything related to the UI is executed in the user interface thread. I tried disabling the Flurry exception catch via FlurryAgent.setCaptureUncaughtExceptions(false) , but that didn't help.

It’s hard for me to understand if Flurry is throwing this exception or just reporting it, I tend to think that the first, when I comment on all the Flurry calls, has no exception / crash.

I am using the latest Flurry SDK - 3.2.1

Any ideas?

+7
java android exception crash flurry
source share
1 answer

There is a problem with AsyncTask in the Android SDK prior to Jelly Bean, which can cause this problem under certain conditions. Please see the Flurry support page , there is a workaround.

+5
source share

All Articles