On Wed, Dec 29, 2010 at 2:04 PM, Raj <rnmalho...@gmail.com> wrote:
>    I have a simple receiver that listens to the BOOT_COMPLETED
> action.

<snip>

> However, when I start debugging with an emulator, the apk gets
> installed, but the receiver process is terminated.

Of course.

Actually, your receiver process was probably terminated earlier, as a
manifest-registered BroadcastReceiver can only live for a few seconds,
tops.

> and any workarounds?

Don't install a new version of your APK.

To debug BOOT_COMPLETED receivers, add Log statements to your code and
reboot your emulator. Examine LogCat to see what happened. Adjust your
code. Lather, rinse, repeat.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to