when ever any application crash come I want to exit from the app ?
How to achieve same. does Android manifest have any provision for same.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I would recommend to register a global UncaughtExceptionHandler. This catches all the exceptions that are not handled. Then you can do there what you want. For example close the app, inform the user and send a log to yourself.
回答2:
You could also use ACRA or a service like BugSense that solve this problem.