开发者

Run an activity in background

开发者 https://www.devze.com 2023-03-25 22:04 出处:网络
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 getCo开发者_如何学PythonntentResolver() to

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 getCo开发者_如何学PythonntentResolver() 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?


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

0

精彩评论

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