Hi It might be the case to use a stick service and keep the thread running. Refer the SyncManager service from the AOSP email application. Hope it helps
On Dec 12, 2:31 pm, Rustam Kovhaev <rkovh...@gmail.com> wrote: > scratch that, I am simply tired for today ^) > > //service on destroy > public void onDestroy() { > handler.getLooper().quit(); > > } > > 2010/12/13 Rustam Kovhaev <rkovh...@gmail.com> > > > > > > > Hello there, > > > I have a service from which I constantly call another service(lets call it > > B service), > > the problem is that in B service I have looper which processes > > two Runnables and when I stop B service, thread stays running, wouldn't die > > and when I call B service again I have two thread already > > > in 5 min time I have about 30 threads, thread.interrupt doesn't seem to be > > working > > > -- > > Regards, > > Rustam Kovhaev > >http://libertadtech.com > > -- > Regards, > Rustam Kovhaevhttp://libertadtech.com -- 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