is it possible to detect screen rotation? I mean – rotation only, which is clearly distinguishable from activity initialization from another activity?
The onXxx methods seem not to be useful for this, I have tried adding/removing a flag from the starting Intent (the removing seems not to be reflected, on rotate the flag is there), and have tried adding android:configChanges=”orientation” for the activity in the manifest, however the onConfigurationChanged method seems to be called every second rotation… wired.
I guess I am missing something… but haven’t found clear solution in the other related threads.
Any ideas?
Manifest:
Activity:
try this link also
How do I detect screen rotation