摘要:
Notification使用基本步骤:Nofification 和NotificationManager的使用 1. 获得系统级的服务NofifiactionManager String Service = NOFICATION_SERVICE NotificationManager nm = (NotificationManager)getSystemService(Service); 2. 实例化Notificatoin对象,并设置其属性: Notification n = new Nofification(); //设置显示图标,会在状态栏显示 Int icon = R... 阅读全文
posted @ 2012-07-19 09:05
Python绿色通道
阅读(811)
评论(1)
推荐(0)
摘要:
1.注意广播发起的动作,以及需要在AndroidMainfest.xml文件中去注册这个广播,并且这个广播需要用intent-filter进行过滤。2.系统级的广播,调用一样,只是需要在AndroidMainfest.xml文件中去注册这个广播,并且添加系统级过滤条件。3.广播也可以在代码中注册,但需要注意的是注册的同时不要忘记去注销这个广播:一般是在Activity.onResume中去注册这个广播:IntentFilter filter = new IntentFilter();BroadcastReceiver receiver = new BroadcastReceiver();reg 阅读全文
posted @ 2012-07-19 00:14
Python绿色通道
阅读(369)
评论(0)
推荐(0)


浙公网安备 33010602011771号