You and everyone else... ;) The way to think about this is that Android is free to cull your Activity, Service, or whatever else, if it doesn't appear to be doing something that is visible to the user. A Service is not exactly the same as an Activity. It is the same as an activity, though, in the sense that there isn't much you can to do keep it running forever.
... and that is a *good* thing. When running your Service takes up memory. If everyone tried to run forever, there'd be no memory left to start new apps. Force close probably kills a process. That process may be running multiple Services, Activities, etc. If there is something you need to poll periodically, have a look at the Alarm Manager. G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do On Tuesday, July 24, 2012 12:21:11 AM UTC-7, tausiq wrote: > > Hi, > I have started a service from my app > I want, even if user force stop the app, the service will continue to run > any kind of help/suggestion would appreciate > > Thanks! > > > > -- > Md. Shahab Uddin > B.Sc Student, CSE, UIU. > Associate Software Engineer > Kaz Software Ltd. Dhaka. > Cell: +880-1917-279378 > > -- You received this message because you are subscribed to the Google Groups "Android Discuss" group. To view this discussion on the web visit https://groups.google.com/d/msg/android-discuss/-/7oXLFQFlkb4J. 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-discuss?hl=en.
