On Fri, Sep 21, 2012 at 7:52 AM, rathod kantilal <rathod3...@gmail.com>wrote:
> 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 > Activty.onStop() and onStart(). Context.startService() and stopService(). ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- 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