I have a multitask application with a quit / logout button on most screens.
When the button is clicked, a confirmation dialog is displayed and then a quit broadcast is sent.
I have a broadcast receiver for each activity that simply calls the finish () operation, and in OnDestroy I unregister the recipient. The code works well under normal use.
The problem I am facing is that an uncovered exception pops up and a force closure occurs.
After I click OK, the last action will appear. When I click the Quit / LogOut button, the translation does not seem to be picked up by other actions.
I usually have to exit each action, or in some cases the second time I press the "Exit" button, through which the broadcast is distributed.
I know that I can set Thread.setDefaultUncaughtExceptionHandler (), but
Are there any things that I am missing here?
The log code does not display anything.
android broadcastreceiver
Ravishankar V Feb 17 '11 at 11:13 2011-02-17 11:13
source share