没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
在Android中实现异步任务机制有两种方式,Handler和AsyncTask。 Handler模式需要为每一个任务创建一个新的线程,任务完成后通过Handler实例向UI线程发送消息,完成界面的更新,这种方式对于整个过程的控制比较精细,但也是有缺点的,例如代码相对臃肿,在多个任务同时执行时,不易对线程进行精确的控制。关于Handler的相关知识,前面也有所介绍,不清楚的朋友们可以参照一下。 为了简化操作,Android1.5提供了工具类android.os.AsyncTask,它使创建异步任务变得更加简单,不再需要编写任务线程和Handler实例即可完成相同的任务。
资源推荐
资源详情
资源评论
收起资源包目录
async.zip (68个子文件)
async
bin
classes.dex 2.65MB
res
crunch
drawable-hdpi
ic_launcher.png 6KB
drawable-xhdpi
ic_launcher.png 9KB
drawable-xxhdpi
ic_launcher.png 17KB
drawable-mdpi
ic_launcher.png 3KB
jarlist.cache 393B
R.txt 62KB
dexedLibs
appcompat_v7-d993a66bf2222ee1b5c32b6cdc194433.jar 166B
httpcore-4.2.4-87ddd47589b05e4391aa1713df0c854d.jar 90KB
android-support-v7-appcompat-65864b269bf36a4d759ae11d892759ca.jar 237KB
android-support-v4-cfcd845d40bea081b6443ebb19280835.jar 445KB
httpclient-4.2.5-a7e2ce8aed931f813371844b4db1366b.jar 156KB
classes
android
support
v7
appcompat
R$layout.class 2KB
R$bool.class 872B
R$id.class 4KB
R$drawable.class 4KB
R$dimen.class 5KB
R$attr.class 9KB
R.class 1015B
R$styleable.class 19KB
R$string.class 1KB
R$integer.class 657B
R$color.class 4KB
R$anim.class 813B
R$style.class 19KB
com
scott
async
MainActivity.class 2KB
BuildConfig.class 339B
MainActivity$2.class 947B
MainActivity$1.class 1KB
R$layout.class 2KB
R$bool.class 833B
R$id.class 4KB
R$drawable.class 4KB
R$dimen.class 5KB
R$attr.class 9KB
R.class 833B
R$styleable.class 19KB
MainActivity$MyTask.class 5KB
R$string.class 1KB
R$integer.class 618B
R$color.class 4KB
R$anim.class 774B
R$style.class 19KB
resources.ap_ 447KB
async.apk 1.33MB
AndroidManifest.xml 857B
res
drawable-ldpi
values-v11
styles.xml 331B
values-v14
styles.xml 388B
drawable-hdpi
ic_launcher.png 7KB
drawable-xhdpi
ic_launcher.png 12KB
drawable-xxhdpi
ic_launcher.png 24KB
values
strings.xml 168B
styles.xml 699B
drawable-mdpi
ic_launcher.png 4KB
layout
main.xml 1KB
proguard-project.txt 781B
ic_launcher-web.png 50KB
assets
gen
android
support
v7
appcompat
R.java 83KB
com
scott
async
BuildConfig.java 157B
R.java 417KB
src
com
scott
async
MainActivity.java 4KB
.project 841B
.classpath 601B
project.properties 607B
AndroidManifest.xml 857B
libs
httpcore-4.2.4.jar 222KB
android-support-v4.jar 1.3MB
httpclient-4.2.5.jar 423KB
共 68 条
- 1
资源评论
nykuist
- 粉丝: 1
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功