- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 Android Handler机制理解
Handler机制理解: Handler Thread Looper MessageQueue 代码中常用到在非UI线程中使用handler.sendMessage(int what)来发送一个消息到UI线程中更 新界面,下面解析一下handler机制,详解其消息是怎么从发送到处理的过程。 1.生成一个Handle对象。 我们通常在Acticity中生成一个Handler对象是直
2013-12-12 11:03:21 578
原创 Android Service startForeground() 可能不显示Notification问题
Android中的Service分前台服务和后台服务两类: 前台服务会在通知栏有一条不能被手动清除的Notification,当此前台服务由于内存不足而被系统kill掉的时候,此Notification也会同时消失,用户由此得知此服务已经停止了,起到一个通知用户服务是否还在工作; 后台服务则没有类似的Notification,即使被系统kill掉,用户也不会得到什么通知。 Service通过
2013-11-14 15:04:19 10836
转载 Android Monkeyrunner 生成API引用文档
环境:windows 1.编写python脚本help.py # Imports the monkeyrunner modules used by this program from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice text = MonkeyRunner.help("html"); f = op
2013-10-16 10:40:10 1339
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人