我尝试过所有其他的stackoverflow答案,但没有奏效。背景broadcastreciever不启动
在manifast XML <receiver android:label="BGTasksBroadcast" android:name=".BGTasksBroadcast"> <intent-filter> <action android:name="android.intent.action.SCREEN_ON" /> <action android:name="android.intent.action.REBOOT" /> </intent-filter> </receiver>
在广播reciever:
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
Log.d("Log", "BROADCAST RECIEVER ");
}
当我启动的应用程序我没有看到日志 “BROADCAST RECIEVER”。
我需要在后台调用服务。所以我使用广播接收器来调用它。但我没有看到广播接收器中放置任何日志。我dono如何调试这个 – Cintu 2011-12-30 13:07:22