开发者

Question about android: I Want to upload images to server

Helllo

I am trying to upload some images to the server. If i placed the code in the subclass of activity, will the sending be interrupted by the onPause function when the user leaving the activity while the user want to use other application. If this is the 开发者_StackOverflow中文版problem would it be better to use service to upload the file instead?


Your best best is to use an AsyncTask. This will execute in the background and give any feedback on the UI thread if you need.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜