What is the use case for this? Why would you want to stop the service when your activity starts?
Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Sep 21, 2012 at 6:52 AM, rathod kantilal <[email protected]>wrote: > Hi everyone. > > I use service in android, I want to do when my application is in > background, my service is start automatically, but when my application is > foreground, my service is stop automatically. > > Please if u have any idea or any code, reply me > > Thanks in advance. > > From, > > Kantilal Rathod > > -- > 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

