开发者

Background process in android

开发者 https://www.devze.com 2023-03-17 15:08 出处:网络
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?

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

精彩评论

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