When will the VM app for Android come out?

I was wondering when the VM app for the Android app comes out?

The reason I ask the question is what I was thinking about when any downstream or invalid singleton links that I think when the process is killed or when the VM exits are cleared.

I had the impression that when it onDestory()was called in all open actions, then the virtual machine would exit, or if the application was in the background and should be killed due to memory limitations, then the VM will be killed (along with the process).

I think my questions are:

  • Are my assumptions about when the virtual machine was executed correctly?
  • Will this provide a cleanup of any random threads and self-inferior single links?
+5
source share
2 answers

I was wondering when the VM app for the Android app comes out?

Perhaps he does not come out. The whole process stops. This will happen sometime after the components are no longer running. How long your process will operate depends on the amount of RAM on the phone, what else is happening, etc.

I got the impression that when onDestory () is called in all open actions, then the VM will exit

There may be a delay between the last component (for example, activity) to be destroyed and the process terminating.

or if the application was in the background and should be killed due to memory limitations, the VM will be killed (along with the process).

Android VM RAM , Android , , . , Android , .

?

, . , , , .

+4

, Android JVM . .

onDestroy. java.util.concurrent /.

+1

All Articles