N
N
Nur-Magomed2016-02-12 22:33:57
Android
Nur-Magomed, 2016-02-12 22:33:57

How to "hang" in android memory?

There is an application in which 1 autostart service when the phone is turned on. However, the service is sometimes unloaded from memory, and then does not start (until you re-launch the application in the menu so that it starts the service at startup).
Interested in how to hang in memory, as messengers do, for example. Moreover, even if they are unloaded by pressing "stop", they still start after a couple of seconds.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
lomikman, 2016-02-12
@lomikman

It's more common to call it a service rather than a service in android developer jargon.
stackoverflow.com/questions/5203883/how-to-impleme...

V
Vitaly Stolyarov, 2016-02-12
@Ni55aN

developer.android.com/intl/ru/reference/android/ap...
Note this means that most of ...

A
aol-nnov, 2016-02-13
@aol-nnov

to paraphrase the famous "you can achieve more with a kind word and a gun than with just a kind word", I will say that using foreground service will sag in memory much longer than using just service ;)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question