I Understand the issue here. The problem here is , The UI Application should get the Service context which is always returnig null and becuase of the the stopservice is not working.
Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad On Tue, Jan 3, 2012 at 10:43 AM, Kristopher Micinski <[email protected] > wrote: > Does your service onStop get called? > > Kris > > On Tue, Jan 3, 2012 at 12:09 AM, elham <[email protected]> wrote: > > I have a apk with just user interface and another apk which has the > > class extending service . The UI apk and Service apk communicate > > through intents . No binders involved. > > > > > > My service starts a operation which is niether in a thread nor in > > AsynTask. When the user selects cancel the UI apk sends a intent to > > Service apk and there i am calling stopService but the service > > continues . > > > > Please let me know if you understand what is happening . > > > > On Jan 2, 5:11 pm, Mukesh Srivastav <[email protected]> wrote: > >> Hey, > >> > >> Are you talking about AsyncTask with a progress Dialog on a Cancel > button > >> ? or ? A Service Class ? Please clarify > >> > >> Secondly, Service runs in the background without user interface, so not > >> sure, which Asynchronous you are taking about. > >> > >> Warm Regards, > >> *Mukesh Kumar*, > >> Android Consultant/Freelancer, > >> India,Hyderabad > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> On Mon, Jan 2, 2012 at 5:37 PM, elham <[email protected]> wrote: > >> > Dear All, > >> > >> > I would want to stop the service before the work completes . For > >> > instance , when the user wishes to cancel, i want to stop the > >> > service . > >> > >> > Is it possible to do so? > >> > >> > Regards, > >> > >> > -- > >> > 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 > > -- > 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

