Search code examples
androidbootcompleted

Android - BroadcastReceiver trying to return result during a non-ordered broadcast


I am trying to catch the BOOT_COMPLETED intent. In my receiver, I just print something to the Log. In Logcat I get this error, and the log statement that I put never prints out. I have set the permission in the manifest for

<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

And have also declared the required intent filter in my receiver. What am I doing wrong?


Solution

  • What am I doing wrong?

    That's impossible to answer given the limited information you have supplied. Perhaps your action string is wrong in your <intent-filter>.

    Here is a sample project that does just what you describe (boot-time receiver writing a message to LogCat).