android
feixiang2005
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Notification 的使用
[code="java"] NotificationManager mNM = (NotificationManager)getSystemService(NOTIFICATION_SERVICE); // Set the icon, scrolling text and timestamp 设置可以在状态栏上显示的图标和提示信息 Notification notifica...原创 2010-07-19 22:48:50 · 106 阅读 · 0 评论 -
Service的点滴
1. LocalService: RemoteService: 可用于进程间通信,共享数据、操作等 2.调用startService启动一个服务 现在(android_2.1)回调的是 public int onStartCommand(Intent intent, int flags, int startId)方法 3. 一个服务进程如果有被bind,这个过程中如果...原创 2010-07-20 16:20:47 · 116 阅读 · 0 评论 -
android 参考站点、资料
http://topic.csdn.net/u/20101130/15/d2cbc4b8-05f5-471d-998d-545222263524.html 精品android源码 http://www.360doc.com/content/10/1119/13/474846_70648224.shtml 编译android源码 bookfm.com 读书频道 下载电子书 h...原创 2010-07-20 17:04:29 · 107 阅读 · 0 评论 -
Handler,Looper,HandlerThread
Handler提供了一种消息机制用于线程间的通信。 默认情况下,Handler是运行在和创建它的线程同一个线程里的。Looper的机制可以改变这一点,通过在构造函数出传递一个looper,可以指定handler在和looper相同线程中执行。 1.可以在线程中调用 Looper.prepare(); Looper.myLooper() 得到一个当前线程的 looper。 2.Loop...原创 2010-07-20 18:19:11 · 166 阅读 · 0 评论 -
Layout 笔记
android:layout_gravity 用于设置对齐方式 [b]LinearLayout [/b] android:baselineAlignedChildIndex When a linear layout is part of another layout that is baseline aligned, it can specify which of its childr...原创 2010-07-21 15:58:06 · 113 阅读 · 0 评论 -
android TIP
1. 主线程中重绘视图可用 xxView.invalidate(); 非主线程中重绘UI视图可以使用 xxView.postInvalidate();原创 2010-07-27 10:04:46 · 174 阅读 · 0 评论 -
Android平台值得关注的开源项目
http://mobile.51cto.com/art/201008/217158.htm原创 2010-08-19 09:02:42 · 109 阅读 · 0 评论 -
android 代理上网
1.emulator.exe -avd avd2.3 -http-proxy 10.x.x.x:8080 启动模拟器 2.或者在模拟器中设置: 启动模拟器,然后进入 settings->Wireless controls->Mobile networks->Access Point Names W) Kpnb7 然后打开出现在列表中的access point; 2Y...原创 2010-12-07 17:37:13 · 279 阅读 · 0 评论
分享