开发者

Background process in android

I would like read the file and upload to server in the backgro开发者_如何学Pythonund which is not require any interaction with the user.which concept is suitable for this? 1.IntentService 2.Async Task 3.Service

please suggest me. Thanks


You can also use standard java Thread for this.


I think service is better option because it runs in background and suitable for long running background process such as I/O Operation . Service might handle network transactions, play music, perform file I/O, or interact with a content provider, all from the background without user interaction.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜