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 ?
Activity has a method onConfigurationChanged()
that is a call back for screen rotation when the activity is running. See the documentation for more details:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.