I have an Android Application that has four activities. None is very large and I have no threads or services.
Should I still implement the lifecycle methods, like onStart(), onResume(), onPause() etc?
I tried to insert some at a suitable place, but it seems a bit unnecessary. I understand they are there to provide stability to the application, but it seems more useful when one is using many threads etc. Am I mistaken?
They help with stability by cleaning up resources acquired in other lifecycle methods.
You may also want to refresh data in your
onResume()or save state inonDestroy()so that you can pick up where you left off when your Activity restarts.If you don’t need these features, then you don’t need to implement methods other than
onCreate().