HI,

If i understand your problem correctly, the compiler is asking to
remove either Broadcast receiver or service.

If so, then what I suggest you is, have a different class which
extends BroadcastReceiver and start the service from that.

-Vinay

On May 24, 12:28 pm, Soumya <soumyakanti...@gmail.com> wrote:
> Hi,
>
> I have written a class which extends the Service class of android and
> would like to launch the service during device boot-up. From the
> service I would like to receive the intents such as boot completed and
> screen off and on.
>
> Currently I am using a BroadcastReceiver to get the boot completed
> intent and then on starting a service to receive screen on and off
> intents. But I would like to remove either the broadcast receiver or
> the service. Any inputs.
>
> Thank you,
> Soumya
>
> --
> 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 
> athttp://groups.google.com/group/android-developers?hl=en

-- 
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