在后台运行活动
我正在使用一项活动在收到彩信后获取彩信附件。我已经为此完成了 MMS 侦听器,它将调用该活动,该活动将使用 getContentResolver() 来获取附件。我希望该活动在后台运行,而不向用户显示空的 UI。有办法做吗?
I'm using an activity to get MMS attachment once a MMS is received. I have completed the MMS listener for this and it will call the activity, which will use getContentResolver()
to grab the attachment. I want the activity to run in the background, without showing the empty UI to the user. Is there anyway to do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您将需要使用服务来实现这一点。这基本上是一项没有风景的活动。查看下面的链接了解更多信息。
http://developer.android.com/guide/topics/fundamentals/services.html
You will want to use a service to make this happen. It is basically an activity without a view. Check out the link below for more info.
http://developer.android.com/guide/topics/fundamentals/services.html