I want to do initialization when activity starts.
I can put it in onCreate method, but it is called every time screenOrientation is changed.
I can disable this in AndroidManifest, but maybe there is better solution for this? 
I want to do initialization when activity starts.
I can put it in onCreate method, but it is called every time screenOrientation is changed.
I can disable this in AndroidManifest, but maybe there is better solution for this? 
 
    
    Please read this article about activities, including orientation change handling. In general reading about activity life cycle would also help you.
