Search code examples
androidandroid-orientation

Orientation Changed Event or Listener Android


Is there any event or listener which fires @ time of orientation changed?

or, how to find out that the orientation of phone is changed?

Thank You


Solution

  • You need to read up on Handling Runtime Changes.

    It explains the old way of doing handling stuff like orientation change.

    Since Fragments was introduced, they have implemented a new way of doing it (similar to the old one) - but if you don't use Fragments it makes no sense using it.