D
D
Denis Safronov2017-02-16 11:33:28
Android
Denis Safronov, 2017-02-16 11:33:28

How to prevent Android from unloading a "heavy" app?

Good afternoon!
There is some application that can do some heavy things that load and heat the device. It is written in JavaSciprt / Cordova (as it should be).
So, here's the point. If the application does not do very difficult things, then it works quietly for days with an active display (WakeLock) and does not raise any questions.
But, if you force it to do heavy things, then after about half an hour Android turns it off / kills it. What shouldn't be.
A similar application from other developers does not crash with a similar task, but it requires root. Hence the assumption that it can do something that I don’t know and why root rights are needed.
Actually the question is, what does it do and how to do the same? Which cordova plugin solves this problem? The application is highly specialized, so root rights are not a problem.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2017-02-16
@zagayevskiy

> after half an hour, Android minimizes / kills it.
Android can kill an application that is on the screen only in the very, very last case. When there are no applications left with a lower priority. During my practice, I have never encountered this, but I had to deal with a lot.
Wangyu, that this jiss craft of yours simply eats up all the memory and quietly crashes with OOM.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question