Thanks Mark, Yes i realize that too. that Service::OnCreate and OnDestroy is called after Activity::OnCreate and OnDestroy always.
Then what/how can we get resultant data from service ? Thanks in advance. JRC On Dec 20, 12:55 pm, Mark Murphy <mmur...@commonsware.com> wrote: > On Mon, Dec 20, 2010 at 1:15 AM, JC <j...@oriolesoftware.com> wrote: > > Hello all, > > > I have service with thread, From activity I am calling start > > service(from Activity::onDestroy()) and stop service > > (activity::onCreate()). > > > StopService() returned instantly but my Service::OnDestroy called > > after so many time, pretty late, Why? How to make Service::OnDestroy > > called immediately when calling StopService(). > > That is not possible, sorry. stopService() is an asynchronous call. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 > Available! -- 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