I am getting java.lang.IllegalStateException: reportDropResult() by non-recipient exception when I use dragging feature on honeycomb. I want to catch it with using setDefaultUncaughtExceptionHandler to prevent to close application. It enters to the method but after then all threads gets freeze and android appears force close or wait model dialog. I click wait button 10 times but nothing changes. How I prevent this exception and closing the application?
Asked
Active
Viewed 1,196 times
3
-
Take a look at https://stackoverflow.com/questions/46070393/replacing-default-uncaught-exception-handler-to-avoid-crash-dialog this might help you – Alex.F Sep 06 '17 at 08:46
1 Answers
1
You cannot stop an app from freezing if you use setDefaultUncaughtExceptionHandler
it merely gives you the chance to act once happened. Act as in save-your-data or store variable values to a file etc.
You have to call the super to finally show the crash message or else the app hangs forever.
To prevent this exception you have to find out what causes it, not try to somehow catch it and make it go away. Exceptions are Javas FRIENDLY way to tell you, that there is something wrong.

NikkyD
- 2,209
- 1
- 16
- 31