问题堆栈区39+40
广播的注册有显示也隐士注册。Intent
就尤为重要了,安卓系统通过我们注册的IntentFilter
来识别广播。具体IntentFilter
的使用。看后面。
- 静态注册
<receiver android:name="" >
<intent-filter android:priority="2147483647" >
<action android:name="android.provider.Telephony.SMS_RECEIVED" >
</action>
</intent-filter>
</receiver>
android:priority
设置广播的优先级。官方说1000最大,实际可以设置为integer
对的最大值,但是只能用于静态注册动态广播有一个特点,就是用来注册的
Acitvity
关掉后。广播也就失效了。解决办法就是用Service
来注册一个广播,服务开启的时候就注册这个广播。这是一个简单粗暴的选择。
服务Service
没有UI,可以在安卓的后台使用。但是这个主要运行的主线程当中。可以理解为何Thread几乎没有任何关系
问题堆栈
ListViwe
筛选功能完成
aidl
的原理理解。继续
- 获取系统所有软件的信息博客
- 继续优化安全卫士。用全新的设计模式。
getSystemService()
在系统中的实际应用场景- 写第二种
Adapter
,使自己适配器多元化发展。完成
- 有些
心得
- 在次优化自己学习方法。V2。0
- 比别人多想一步,注重用户体验,和交互
- 优先参考源代码开发出所有项目,不应该在这里拖慢节奏了。保证最高效的学习方法。这个才是最有用的。抄写都要把他们抄写一遍。
- 不应该继续开发其他项目了。应该优先把手中的项目做到最好,自己最满意, 动画,界面,什么的,
- 如果是我我会怎么做。我
怎么样
设计这个功能,和更好的人工交互。
创意
- 从小就有一个出国的愿望,今天坐公交遇到一位小妹子。
- 假如用户换号码,第一次收到通话,应该给打电话者发一个换号码短信功能。
- 最后把安全卫士做完 把这个安全卫士最后改造成为自己喜欢的安全卫士,这个版本太差了。