[android-developers] Re: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2017-08-04 Thread eslam elhoseiny
Did you find any solution ? On Friday, September 23, 2016 at 2:44:34 PM UTC+2, Connexun India wrote: > > Hello, > > Can any buddy help to resolve the issue when app kill from background (by > swipe from recent) then i am not getting any location update? This is the > problem i am facing in Kitka

[android-developers] Re: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2016-09-23 Thread Connexun India
Hello, Can any buddy help to resolve the issue when app kill from background (by swipe from recent) then i am not getting any location update? This is the problem i am facing in Kitkat and Lollipop version of android. I am using GoogleApiClient for location update. Also i am using in service f

Re: [android-developers] Re: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2014-01-03 Thread 3c
Just for the record Piren now that this bug has actually been verified by others, not just argued without testing, I didn't insulted anyone, and didn't go into rhetoric. The original post is pretty clear and shows extract on actual Android dev documentation and actual Android verified behavior

[android-developers] Re: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2013-12-22 Thread 3c
Any-one tried to use the android:persistent flag set to true in Application manifest? Might not really be a desired configuration, but might help some specific use cases. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gro

[android-developers] Re: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2013-12-17 Thread Muzikant
Try using the following code. It's a dirty workaround but it works (unless the process is killed via ps or DDMS - Does anyone have some sort of solution for that ???). public void onTaskRemoved(Intent rootIntent) { Intent restartServiceIntent = new Intent(getApplicationContext(), this.getClass(

Re: [android-developers] Re: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2013-12-15 Thread Kostya Vasilyev
2013/12/15 Cedric Counotte > Nice testing and investigation. Running the same device same version. > > However when I set a foreground service (with the status icon) the app is > not killed!? The is actually running a plain sticky background service and > an extra foreground service. > In the pa

Re: [android-developers] Re: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2013-12-15 Thread Cedric Counotte
Nice testing and investigation. Running the same device same version. However when I set a foreground service (with the status icon) the app is not killed!? The is actually running a plain sticky background service and an extra foreground service. Without foreground service the app is killed and

Re: [android-developers] Re: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2013-12-15 Thread Piren
Good thing i've placed that Asterisk in my post :) Sounds like quite a bug. On Sunday, December 15, 2013 2:34:23 PM UTC+2, Kostya Vasilyev wrote: > > I just did a quick test (twice, to be sure) on my Nexus 5 with 4.4.2, and > found that: > > 1 - Having a foreground service does not prevent the

Re: [android-developers] Re: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2013-12-15 Thread Kostya Vasilyev
I just did a quick test (twice, to be sure) on my Nexus 5 with 4.4.2, and found that: 1 - Having a foreground service does not prevent the process, including the service, from being killed 2 - The killed process does not get automatically restarted, at least not in any reasonable timeframe 3 - T

Re: [android-developers] Re: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2013-12-15 Thread Piren
First, i'll have to agree with Kristopher, you're being an asshole... tone down your rhetoric, people might be more inclined to help you. Second, you keep going on and on selling us what you think the swipe means and what users think the swipe means, who cares? the only thing that matters is wha

Re: [android-developers] Re: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2013-12-14 Thread Cedric Counotte
And I did dig into the sources. App is permanently killed, except for manifest registered events (unverified) and alarms. So any sticky device not relying on those is a dead service. In 4.4.x only that is. I found a work around but its so dirty I wait for a better option if any before posting. Le

Re: [android-developers] Re: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2013-12-14 Thread Cedric Counotte
So far I didn't see any solution, only reference to documentation that's unrelated. So talking about condescending... And its as if no one even care to read the actual documentation that relates to this issue which I've clearly posted. As if I didn't know what force stop was doing or if my servic

Re: [android-developers] Re: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2013-12-14 Thread Kristopher Micinski
Just as a note: you're being fairly condescending to people who are suggesting solutions to you free of charge in a pretty polite way.. I personally don't know what the semantics of the swipe away are: but I wouldn't be surprised if it were to kill the app. I am not sure whether or not I'd call i

[android-developers] Re: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2013-12-14 Thread VenomVendor™
You have to use *START_STICKY*which is a sticky service, also add flag *FLAG_FROM_BACKGROUND *while starting your service. when

[android-developers] Re: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2013-12-13 Thread 3c
Thanks but I'm fully aware of this and as the title suggest I'm referring to swiping an app from the recent task list. Not sure how this has anything to do with this. On Android 4.4, the recent task list is now acting like a force-stop and that's a definitive and obvious bug. And this behavior

Re: [android-developers] Re: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2013-12-12 Thread Cedric Counotte
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" a écrit : > Have a read of: > > Launch controls on s

[android-developers] Re: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2013-12-12 Thread RichardC
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 Appli

[android-developers] Re: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2013-12-12 Thread 3c
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

[android-developers] Re: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2013-12-12 Thread RichardC
Based on the blog post when the "task killing" of applications was introduced, I would say that restarting a service of a killed application (process) was an implementation bug. It was clear from the blog post that when and end-user "task killed" an application then that application (and all c