# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
四者之间的关系: Handler获取当前线程中的looper对象,looper用来从存放Message的MessageQueue中取出Message,再有Handler进行Message的分发和处理. 简单定义: 1、Message Queue(消息队列): 用来存放通过Handler发布的消息,通常附属于某一个创建它的线程,可以通过Looper.myQueue()得到当前线程的消息队列. 2、Handler: 可以发布或者处理一个消息或者操作一个Runnable,通过Handler发布消息,消息将只会发送到与它关联的消息队列,然也只能处理该消息队列中的消息. 3、Looper: 是Handler和消息队列之间通讯桥梁,程序组件首先通过Handler把消息传递给Looper,Looper把消息放入队列。Looper也把消息队列里的消息广播给所有的Handler:Handler接受到消息后调用handleMessage进行处理. 4、Message: 消息的类型,在Handler类中的handleMessage方法中得到单个的消息进行处理,在单线程模型下,为了线程通信问题,Android设计了一个Message Queue(消息队列), 线程间可以通过该Message Queue并结合Handler和Looper组件进行信息交换。 博客链接:http://blog.csdn.net/a13429921973/article/details/9281569
资源推荐
资源详情
资源评论
收起资源包目录
HandlerDemo.rar (44个子文件)
HandlerDemo
AndroidManifest.xml 881B
res
layout
main.xml 615B
drawable-ldpi
menu
main.xml 223B
drawable-mdpi
ic_launcher.png 4KB
values-sw600dp
dimens.xml 201B
drawable-hdpi
ic_launcher.png 7KB
values-sw720dp-land
dimens.xml 275B
drawable-xhdpi
ic_launcher.png 12KB
drawable-xxhdpi
ic_launcher.png 24KB
values
strings.xml 220B
dimens.xml 218B
styles.xml 695B
src
andieguo
test
handler
MainActivity.java 3KB
proguard-project.txt 781B
bin
classes
andieguo
test
handler
MainActivity$MyThread.class 2KB
BuildConfig.class 351B
R.class 703B
MainActivity.class 2KB
R$layout.class 403B
R$attr.class 349B
R$style.class 440B
R$id.class 468B
R$string.class 475B
R$menu.class 397B
R$dimen.class 470B
R$drawable.class 416B
MainActivity$MyHandler.class 2KB
dexedLibs
android-support-v4-ce59717dde13ca4524d6ceac48faea4c.jar 148KB
annotations-c4671a5b7fc071fb0cb84c435f8fd0cf.jar 943B
AndroidManifest.xml 881B
res
drawable-mdpi
ic_launcher.png 3KB
drawable-hdpi
ic_launcher.png 6KB
drawable-xhdpi
ic_launcher.png 9KB
drawable-xxhdpi
ic_launcher.png 17KB
HandlerDemo.apk 192KB
classes.dex 443KB
resources.ap_ 40KB
.classpath 364B
assets
project.properties 562B
ic_launcher-web.png 50KB
libs
android-support-v4.jar 384KB
.project 847B
gen
andieguo
test
handler
R.java 2KB
BuildConfig.java 163B
共 44 条
- 1
andie_guo
- 粉丝: 126
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页