如何在android上的服务器上上传数据时处理来电 [英] how to handle incoming call when data upload on Server in android

查看:60
本文介绍了如何在android上的服务器上上传数据时处理来电的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在收到来电时在服务器上传数据,所以我的上传是否在后台运行?

如果不是如何以当前状态恢复我的应用程序。

when i upload data on server at that time incoming call received ,so my uploading is running in background or not?
if Not than how to resume my application with current state.

推荐答案

你可以使用AsyncTask .AsyncTask可以正确,方便地使用UI线程。



查看此链接:

AsyncTask [ ^ ]



AsyncTask [ ^ ]
you can use AsyncTask .AsyncTask enables proper and easy use of the UI thread.

check this links:
AsyncTask[^]

AsyncTask[^]


这篇关于如何在android上的服务器上上传数据时处理来电的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆