Mr. Curious write ,
Dear RTT , I am using Android from a long metre now , and I always enquire which is the right way to come together an app on Android ? I know one can use the house clitoris or Back button to closes the app , I have also seen few mass using the task cause of death to close apps . But if all three method do the same thing , then what is the difference .
Once I closed my app , I do n’t want it to hunt in the setting and habituate my phone resource , So I was just wonder out of these 3 , which one is the right method to come together an app on Android ?
Well , Mr. Curious , thanks for bringing this up , closing apps on Android is something each of us does many clock time a day without hold it much thought . So which is an ideal approach to close up an app ? Should press the back button , the domicile push button or use task killer apps ? If all of them are doing the something then what take in them different from each other ?
Here is a elaborated scout to reply all these questions .
TL;DRYou can use either of two , i.e. , . home button or back button to close an app , both do the same affair .
DetailExplanation ofAndroid back button vs. home button
Back clit : Theoretically when back push is press , it will call onDestroy ( ) , which tell Android that user want to quit this app and organization will ruin any present selective information on the coating . But some apps like Spotify and Google apps do n’t follow this , and most of the apps remain available in late apps . Therefore next time the user launch the app , he or she will see the nonpayment welcome CRT screen of the app .
Home Button calls the onPause ( ) method , that severalize the system to hold the information on the screen as the drug user will do back and use it again . And if the substance abuser does n’t come back after a set amount of time this software will be reset and drop off from recent apps .
Android are smarter group O . They know it well on when and how many resource should be apportion . You may have project closed in apps appearing under late apps even if you have bid the back button instead of the house button . Why ? This is because retrieving apps from a hoard is faster than opening a new one .
And as far as allotment of resources pass , activity do n’t run in the scope on Android , therefore consuming very less ( almost nothing ) amount of memory or shelling . They are just there , because the next time you open this app , they will launch quickly .
On the reverse , it is not recommended to use undertaking killer apps to close Apps . But sometimes , if you require to force shut an app , then use the constitutional force close pick , available under twist setting > Apps > rap on the app you require to close > Force close .
stopping point
It does n’t matter if you press the home button or back clit to close an app , it only change what you are go to see next time you launch the app while your equipment electric battery or remembering remain unaffected by which method acting did you used for shut the app .
ViaStackExchange- Android