Search code examples
androidandroid-activityactivity-finish

Android: Application still running after call finish()


I'm new at Android Development...

I create a new activity and call finish(); method. But it still running, consuming battery, memory... Battery and memory consumption after activity is destroyed

Is there a way of stop the application completely, avoiding battery and memory consumption after activity is destroyed?


Solution

  • Duplicated Question!

    You can't control when your app leaves the main memory, the OS does. Look closely at Activity.finish()

    I think there will be no way of stopping the application completely, avoiding battery and memory consumption after the activity is destroyed.

    Answer(Link) is : Activity.finish() called but activity stays loaded in memory