Mark,

    Thank you for your informative response. I had a Logcat() as the
very first call in the receiver. Unfortunately, it never gets hit, and
I do no see that message in the Logcat.  I also see the following in
the logcat

[2011-01-04 11:43:35 - DroidLocator] No Launcher activity found!
[2011-01-04 11:43:35 - DroidLocator] The launch will only sync the
application package on the device!

Do I need to do anything special in the manifest?

Thanks, again.

Regards,

Raj.


On Dec 29 2010, 2:29 pm, Mark Murphy <[email protected]> wrote:
> On Wed, Dec 29, 2010 at 2:04 PM, Raj <[email protected]> wrote:
> >    I have a simplereceiverthat listens to the BOOT_COMPLETED
> > action.
>
> <snip>
>
> > However, when I start debugging with an emulator, the apk gets
> > installed, but thereceiverprocess is terminated.
>
> Of course.
>
> Actually, yourreceiverprocess 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/commonsguyhttp://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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to