如何在后台进程中显示警报消息? [英] how to display alert messages in the back process?

查看:102
本文介绍了如何在后台进程中显示警报消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何实现代码,每隔5分钟显示一条新消息作为后台进程中的警报类型。(我的意思是,如果我们收到消息,那么在5分钟之后另一条新消息在这里,我的意图是我能够看到所有警报,它意味着我能够一次看到最后的消息和以前的消息)所以请帮助我解决这个问题

hi how to implement code for displaying alert messages for every 5 minuets one new message as a alert type in the back ground process.(i mean if we receive a message then after 5 minuets another new message here my intention is i able to see all alerts it mean i able to see last messages and previous messages at a time) so kindly help me to over come from this problem

推荐答案

覆盖onBackPressed()使用按钮和文本进行警告对话框的方法和编写代码。当你点击后退按钮时,会弹出对话框。如果你想点击那个警告对话框按钮调用完成方法,你想完成活动。
Override onBackPressed() method and write code for alert dialog with button and text.When ever u click on back button the dialog will pop up.if u want to finish the activity when click on that alert dialog button call finish method.


这篇关于如何在后台进程中显示警报消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆