How to close/cancel/dismiss a System Dialog programmatically (Android)

后端 未结 3 946
别那么骄傲
别那么骄傲 2020-12-31 14:16

I have an app that make USSD calls, but after all USSD calls i got a dialog with the result to the user.

I know that is possible to dismiss this dialog because the \

3条回答
  •  梦谈多话
    2020-12-31 14:59

    Just add this line in your code.

    Intent intent = new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
    sendBroadcast(intent);
    

提交回复
热议问题