B
B
bigbaraboom2015-11-13 12:20:52
Android
bigbaraboom, 2015-11-13 12:20:52

Android process dies over time, what to do?

I'm creating a simple application that creates a service that every second Thread is empty and runs and ends immediately. So the problem is that after about 10 hours the service dies. Application no. Moreover, onDestroy does not come to the service. Memory does not flow, because there is nothing to flow there, a purely empty process.
I know that android loves to kill useless processes. He apparently kills, the logs are empty.
Tell me what could be the problem and how to solve it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
aol-nnov, 2015-11-13
@aol-nnov

> What to do?
reconcile)
foreground service will help you, I think.

T
Tiberal, 2015-11-16
@Tiberal

It's just that Android doesn't kill anything. Taska kills when there is not enough memory. Are you sure nothing is leaking? Did you analyze the hip dump? As an option, you can try to increase the priority of the service to activation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question