会员
T恤
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
池塘
止于行、止于心,发于心、发于行。
博客园
首页
新随笔
联系
订阅
管理
随笔 - 103 文章 - 11 评论 - 18 阅读 -
15万
随笔分类
android(19)
android-dlna(3)
android-mina(1)
android-ndk(3)
chromium(2)
goagant(1)
html(webkit)(1)
linux-app(11)
linux-ARM学习(4)
linux-em(7)
linux-grub(1)
linux-ldd3(1)
linux-oscam(2)
linux-shell&command(13)
linux-ubuntu(3)
MBR分析(3)
NAS(1)
study-c++(3)
study-libc(1)
windows-C++(2)
windows-net学习(1)
windows-VBScript(5)
零散日志|随笔(17)
设计模式(1)
转载收藏(6)
昵称:
J.evan
园龄:
16年4个月
粉丝:
7
关注:
0
<
2025年4月
>
日
一
二
三
四
五
六
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
4
5
6
7
8
9
10
搜索
常用链接
我的随笔
我的评论
我的参与
最新评论
我的标签
我的标签
android
(8)
MBR
(4)
ubuntu
(2)
OSCam
(2)
NDK
(2)
mount
(2)
DLNA
(2)
apt-get
(2)
windows
(1)
Win32_NetworkAdapterConfiguration
(1)
更多
随笔分类
android(19)
android-dlna(3)
android-mina(1)
android-ndk(3)
chromium(2)
goagant(1)
html(webkit)(1)
linux-app(11)
linux-ARM学习(4)
linux-em(7)
linux-grub(1)
linux-ldd3(1)
linux-oscam(2)
linux-shell&command(13)
linux-ubuntu(3)
MBR分析(3)
NAS(1)
study-c++(3)
study-libc(1)
windows-C++(2)
windows-net学习(1)
windows-VBScript(5)
零散日志|随笔(17)
设计模式(1)
转载收藏(6)
更多
随笔档案
2013年12月(8)
2013年11月(15)
2013年9月(1)
2013年8月(2)
2013年7月(6)
2013年6月(10)
2013年5月(2)
2013年4月(2)
2012年11月(7)
2012年10月(3)
2012年9月(5)
2012年8月(10)
2012年7月(11)
2012年5月(1)
2011年12月(7)
2011年11月(1)
2011年5月(1)
2011年3月(6)
2009年11月(3)
2009年2月(1)
2008年12月(1)
更多
文章分类
python(1)
Seraph(1)
ubuntu(2)
编程语言(1)
硬件收藏(1)
相册
默认相册(1)
webkit研究
放飞梦想
求索
阅读排行榜
1. Java中执行shell笔记(17910)
2. This Handler class should be static or leaks might occur Android(11949)
3. Android加载大图片OOM异常解决(6353)
4. 关于c# 默认参数(6187)
5. 使用U盘安装ubuntu 12.04(使用大白菜u盘启动工具)(6074)
评论排行榜
1. This Handler class should be static or leaks might occur Android(5)
2. 申请了博客园(4)
3. 关于c# 默认参数(2)
4. Android加载大图片OOM异常解决(1)
推荐排行榜
1. Makefile:431: *** mixed implicit and normal rules. Stop.(1)
最新评论
1. Re:This Handler class should be static or leaks might occur Android
@ Bran Stark你这种做,外面的Activity对象将不能被GC,因为你在handler中《直接》引用了他。第二种处理方式是通过WeakReference引用Activity,你的这个hand...
--J.evan
2. Re:This Handler class should be static or leaks might occur Android
转载的那篇文章,只要在代码段 public void handleMessage(Message msg) { PopupActivity theActivity = mActivity.get();...
--Bran Stark
3. Re:This Handler class should be static or leaks might occur Android
我将static handler按你的方法改成弱化handler,无报错,运行报异常。
--黄糊涂
4. Re:This Handler class should be static or leaks might occur Android
@ 路人 乙你能举个例子么?没有必要吧。...
--J.evan
5. Re:This Handler class should be static or leaks might occur Android
有个问题呀,Handler在handleMessage里有时有很多的东西要处理,比如对一些控件的操作,这样的话,这些控件都必须要声明成static类型的。
--路人 乙
点击右上角即可分享