How do you start your service?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Jun 29, 2011 at 11:56 AM, Tommy Hartz <[email protected]> wrote:

> Hi,****
>
> ** **
>
> I am slightly confused as to why I am receiving an ANR when trying to send
> a broadcast from a service. Here is what is happening. I have a service that
> goes off every X minutes. If this service finds a valid reason to alert me
> it sends a broadcast ****
>
> ** **
>
>                                                                 
> *if*(validAlert
> == *true*){****
>
>                         sendBroadcast(Alertbroadcast);****
>
>                         Log.*i*("WeatherDog","Valid Alert. User Alerted."
> );****
>
>                         stopSelf();****
>
>                         }****
>
> ** **
>
> ** **
>
> Now it seems that everytime the sendBroadcast(Alertbroadcast) is hit I get
> an android ANR that pops up with the following in logcat:****
>
>                                                                 ****
>
>                                                                 ANR in X.X
> ****
>
>                                                                 Reason:
> Executing service x.x/ .MyService****
>
> ** **
>
> Now if I hit wait on the error that comes up I find that my broadcast
> receiver worked properly and display’s the Icon and text it needs to
> display.****
>
> ** **
>
> Does anyone have any idea what could be the issue? I have other
> broadcast/receiver I use elsewhere in the app that work without flaw.****
>
> --
> 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

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