如何在后台运行的Andr​​oid活动 [英] How to run activity in background in Android

查看:122
本文介绍了如何在后台运行的Andr​​oid活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序,我需要一定的时间间隔后发送短信给用户。为此,我需要运行邮件发送code的背景。我使用报警管理器启动特定time.What活动办?是否有另一种方式来做到这一点?

In my application, I need to send the text message to the user after a certain interval. For that I need to run the message sending code in background. I am using the alarm manager to start activity at specific time.What to do? Is there another way to do this?

推荐答案

您可以考虑使用服务< /一>这是basicly UI少活动。

You could look into using Services which are basicly UI-less Activities.

这篇关于如何在后台运行的Andr​​oid活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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