How to give event on force close dialog's ok button

后端 未结 2 1698
粉色の甜心
粉色の甜心 2021-01-15 17:53

Hi I want to know can I perform my own operations on Force Close Dialog\'s OK Button ?

2条回答
  •  -上瘾入骨i
    2021-01-15 17:56

    As far as I know, it is not possible to add functionality to the Android FC dialog. But, what you can do is add your own uncaughtExceptionHandler to handle exceptions. However, when you catch an exception you are a bit limited to what you can do. You cannot show a dialog (see also this post why this is).

提交回复
热议问题