<receiver android:name="cn.class3g.phonelistener.BootBroadcastReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
</intent-filter>
</receiver>
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
</intent-filter>
</receiver>
解决方案 »
- Android MediaRecorder 录音setAudioSource failed
- 新手请教下不同分辨率的问题
- 求大神索尼LT18官升4.04ROOT
- 谁能把SDK and AVD Manager里的Available Packages 打包一下上传到下载频道!
- NotificationManager 空指针异常
- 新手求问
- 求高手解决android客户端连接wcf服务器,用gson序列化和反序列化请求的数据类型,
- 为什么在Eclipse里面strings.xml文件不会自动索引到R.java
- 建立线程启动线程之后, 线程代码是不是在 public void run()函数 中?
- Android新人,不会配置环境。特来求助
- 为什么内存只到50%左右就报OOM呢,有图求指教。
- 关于webview 的onPageStarted 方法使用.
<action android:name="android.intent.action.BOOT_COMPLETED"/>
01.package cn.class3g.phonelistener;
05.public class BootBroadcastReceiver extends BroadcastReceiver {
07. public void onReceive(Context context, Intent intent) {
Log.i("TAG", "广播被接收了");
10.
11.Intent serviceIntent = new Intent(context, PhoneListenerService.class);
12.
13. context.startService(serviceIntent);
14.
15. }
16.
17.}
http://my.oschina.net/f839903061/blog/64818