0

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?

Liza Tjaica
  • 593
  • 1
  • 7
  • 16
  • This is one of my biggest gripes about programming for android, I loathe screen orientation changes. – Mgamerz Nov 19 '12 at 21:41

1 Answers1

2

Please read this article about activities, including orientation change handling. In general reading about activity life cycle would also help you.

Marcin Orlowski
  • 72,056
  • 11
  • 123
  • 141