Adham
Adham

Reputation: 64854

How to detect screen rotation in android

How to detect screen rotation in android in other words how to catch screen rotation event in android ? does onCreate be called in every rotation ?

Upvotes: 0

Views: 1999

Answers (1)

Scott
Scott

Reputation: 1652

Activity has a method onConfigurationChanged() that is a call back for screen rotation when the activity is running. See the documentation for more details:

http://developer.android.com/reference/android/app/Activity.html#onConfigurationChanged(android.content.res.Configuration)

Upvotes: 1

Related Questions