I am beginning to learn android development in two video courses I have watched and one book I have read it said onDestroy()
is called by OS when it feels to freeup memory. Nobody even mentioned that it will be called when user closes the app. That created me doubt if onDestroy()
is called when the app is closed by the user.
Someone please clarify.