onDestroy gets called each time the screen goes on
If you want to stop the destroy/create issue that is the default in android because of an orientation change and lock in one orientation then you need to add code and xml In your activites code (notes about the xml) // When an android device changes orientation usually the activity is destroyed and recreated with … Read more