Inactive action memory

I have an application that has some foreground features, as well as a service that updates some widgets. The problem is that since the process remains for the service, the memory from other actions, if they are open, is never restored.

Looking at the answer from Roman Guy , it seems that this is normal. But this? How long does an android store resources of unused activities? Can they live for hours?

How can I easily find out if actions have leaked or simply not been restored? I tried with the program with AndroidMarket (FreeMemoryRecover) and it cleared, but I suspect that it killed the process and then restarted the service ...

Any help or suggestion would be greatly appreciated.

Note 1: I explored using MAT HeapDump + Eclipse, and I don't see weird links containing my actions.

Note 2: I already asked a few questions on this issue:

+3
source share
3 answers

The ability of Android to have several activities in different states is a development principle, because it allows users to quickly switch between actions, not realizing that they need to turn off everything that they did before. Then they can quickly return to the previous action.

If Android needs to pause an action and quickly turn it off, it will need to support Activity resources.

Activity, ( , ​​Linux , , ), , .

?

+1

:

, , .

"" , techcrunch.com, lemonde.fr, youtube.com, dailymotion.com, youtube, , , , pdf.

Android , . , , , .

, , , AndroidLand!

+1
  • . .

  • Android.

  • , Launcher. ( unbindDrawables )

  • Context.getApplicationContext(), , .

0

Source: https://habr.com/ru/post/1788662/


All Articles