如何在后台进程中显示警报消息?

编程入门 行业动态 更新时间:2024-10-26 12:24:27
本文介绍了如何在后台进程中显示警报消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何实现代码,每隔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.

更多推荐

如何在后台进程中显示警报消息?

本文发布于:2023-11-27 20:36:22,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1639511.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:警报   后台   进程   消息   如何在

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!