Skip to content Skip to sidebar Skip to footer

The Application Still In Ram After Using It And Take More-2 Space Each Time I Play The App?

I have worked on the application which I present in the RAM after I am out of my application. Also the size in RAM is increases every time when I play the application. I don't know

Solution 1:

Your app stays in ram as long as android wants it.. You don't have control to it.

Try reusing the activities by configuring the launchMode property to stop it from increasing.

Also, use some flag to check the dialog box display and don't display if it's already displayed

Solution 2:

You app stays in the phone ram to allow the user to return to the app without much loading time. The Android memory system works in a way that as long as memory is not needed the last used apps stay in the RAM. Don't worry about that. If another app needs this memory and your app has no foreground components like activities your whole app will closed down step by step until the phone has enough memory again. The only way to block memory would it be to create a very badly designed service. And even services are shut down if foreground services need the memory.

Post a Comment for "The Application Still In Ram After Using It And Take More-2 Space Each Time I Play The App?"