Yeah thanks but no thanks. I'm fully aware of that. I'm talking about the recent task list. Removing an app from that list does like a force stop on KitKat.
Why don't you read what I wrote in the first place? Le 13 déc. 2013 04:35, "RichardC" <richard.crit...@googlemail.com> a écrit : > Have a read of: > > Launch controls on stopped applications in > http://developer.android.com/about/versions/android-3.1.html > > Note that it says: > *"Applications are in a stopped state when they are first installed but > are not yet launched and when they are manually stopped by the user (in > Manage Applications)."* > > This was introduced in 3.1 before we had swiping away. > > > On Friday, December 13, 2013 1:22:27 AM UTC, 3c wrote: >> >> I cannot agree with this as the recent task list in no way suggest >> killing the apps. Actually every users seems to see it differently. Some >> take that recent task list as the name suggest, recent tasks and >> activities, others see it as you suggest an app killing, but most users >> don't know what's actually happening when removing a task from that list. >> >> Furthermore that list doesn't actually reflect apps still running, but >> the recent tasks or apps used by end-user. On boot I may have a dozen apps >> running, but no way to kill them (except going into settings, force-stop) >> if I haven't started them once, making this task killer the worse I've ever >> seen: it requires end-user to open the app before being able to kill it >> permanently! And it's not because I remove a task from that very list that >> I don't want its services to continue running. >> >> Looking at documentation for the Service class and the related manifest >> attributes definitely confirm the behavior of Android 4.0 to 4.3: >> >> With Android 4.4, the below flag is now ineffective, which falls into the >> bug category, not the other way around as you suggest. >> >> >> public static final int stopWithTask >> Added in API level >> 14<http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels> >> >> If set to true, this service with be automatically stopped when the user >> remove a task rooted in an activity owned by the application. The default >> is false. >> >> Must be a boolean value, either "true" or "false". >> public void onTaskRemoved >> (Intent<http://developer.android.com/reference/android/content/Intent.html> >> rootIntent) >> Added in API level >> 14<http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels> >> >> This is called if the service is currently running and the user has >> removed a task that comes from the service's application. If you have set >> ServiceInfo.FLAG_STOP_WITH_TASK<http://developer.android.com/reference/android/content/pm/ServiceInfo.html#FLAG_STOP_WITH_TASK> >> then >> you will not receive this callback; instead, the service will simply be >> stopped. >> >> >> -- > 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 > --- > You received this message because you are subscribed to a topic in the > Google Groups "Android Developers" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/android-developers/H-DSQ4-tiac/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > android-developers+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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 --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.