same activity called multiple times

Solutions on MaxInterview for same activity called multiple times by the best coders in the world

showing results for - "same activity called multiple times"
Santiago
28 Feb 2016
1Android will recreate your activity after certain "device configuration changes". One such example is orientation. You can read more here... http://developer.android.com/guide/topics/resources/runtime-changes.html
2
3Perhaps something in your threads is doing something which is considered a configuration change?
4
5If that's the case you might find it useful to extend the Application class instead and do your initialization there. See this post... Activity restart on rotation Android