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 Kitkat and Lollipop version of android.
>
> I am using GoogleApiClient for location update. Also i am using in service 
> for get the location.
>
> Thanks,
>
> Ajay
>
> On Friday, December 13, 2013 at 2:50:34 AM UTC+5:30, 3c wrote:
>>
>> The swipe app out of recent tasks is supposed (as far as I understand it) 
>> to terminate all activities but keep services running. This is true (and I 
>> verified that behavior) until KitKat (verified on 4.4.1 and 4.4.2).
>>
>> In KitKat, the app is killed instantly:
>> 12-12 22:04:47.386: I/ActivityManager(784): Killing 
>> 16695:<package_name>/u0a80 (adj 16): remove task
>>
>> And will not run until the user manually starts the app again!
>>
>> Looking at the Android settings, Applications, Running tab shows the app 
>> as running 0 processes and 1 service. However the service is completely 
>> gone and no actual Linux process is running it. A "ps" clearly reveals it's 
>> not running. Service is not even restarted!
>>
>> The onTaskRemoved() method is called as expected and then app is 
>> permanently killed.
>>
>> On Android 4.3, the app process is killed (along with all background 
>> services), however those services returning START_STICKY are restarted as 
>> expected.
>>
>> Adding a notification icon using the foreground service flag does solves 
>> this, however the UI memory is no longer claimed and it's not the behavior 
>> that's being documented, is it?
>>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/11bba103-5d73-43d4-a9b6-70078b82f855%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to