restartPackage() is actually finishPackage(), just poorly named. As of Android 2.0 there is a UI to stop individual services. It does not make sense to do other things to apps without completely killing them. Heck, even completely killing them causes problems for apps; trying to get more subtle here would just make that far worse.
When an alarm goes off, the alarm dialog is shown immediately for you to stop it, and it also has a notification for you to stop it (and music also has a notification). If the app is not letting you easily stop it, that is a bug in the app, and we don't really want to introduce significant system facilities like this for app developers to rely on as a crutch to write crummy apps. On Mon, Mar 22, 2010 at 2:56 PM, dipu <[email protected]> wrote: > I think there should be a finishPackage() function similar to the > restartPackage(). There should be a way to stop some tasks without > killing the process. For example sometimes I need to stop music > running in the background, alarm going in the background etc. It > takes way too many steps to stop such apps. Specially at 6 in the > morning when I try to stop that annoying rooster alarm :) > > restartPackage() issues death notification. Most of the time I do not > want to do that. I would like to simply close(finish) a task > normally. > > Thanks, > dipu > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > > To unsubscribe from this group, send email to android-developers+ > unsubscribegooglegroups.com or reply to this email with the words "REMOVE > ME" as the subject. > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

