Close Previous activity makes application faster?

3

I was developing an application for Android and I had a question:

In my main class MainActivity I have the setContentView function that initializes my screen, but if I want to open other Activity I need to close the previous ones so that the application is faster?

It's a silly question but I want to know if the app gains performance by closing previous views .

    
asked by anonymous 13.02.2015 / 22:48

2 answers

3

Make an app more optimized, requires several preparations besides past previous activity. By logic, when closing a previous activity, frees memory and can aid in processing. But this is not enough. Re-run the app's working logic, you may have a lot of activity, and you could group the functions in a few screens ... Another thing, it might help, is to decrease the creation of copies of variables while the app is running. Uploading images and resource dependencies over the internet can make your app seem slow, where you'd actually be downloading data.

I hope I have helped!

    
16.03.2015 / 20:51
0

It is very likely to stay, but if you need to go back to the previous activity you will need to do an Intent.

    
14.02.2015 / 19:50