开发者

How to get alertdialog() when the application is minimized?

开发者 https://www.devze.com 2023-02-22 20:13 出处:网络
I am new at Android developement. Currently, I am developing receiving sms kind of application, which receives the sms and displays the alertdialog() for text to speech functionality option. I do cal

I am new at Android developement.

Currently, I am developing receiving sms kind of application, which receives the sms and displays the alertdialog() for text to speech functionality option. I do call the method for alertdialog(开发者_JS百科) in another class from Broadcastreceiver class. When the application is running, the alertdialog() appears, but after pressing the Home button, it doesn't.

So, what should I do?

Please help me.


Consider using a Toast. If you need user interaction, consider a Notification.

Don't try to pop up a big dialog when your app is not in the foreground, that would be utterly intrusive.

0

精彩评论

暂无评论...
验证码 换一张
取 消