Android screen rotation takes too long to get triggered

by SamLin   Last Updated August 13, 2019 12:11 PM - source

When I rotate my screen to 90 degrees, the screen rotates but it takes 3 seconds to start rotating. (This doesn't mean it rotates for 3 seconds. This means it waits 3 secs to starting rotation.) Can this be set in any property or any code related to do this setting?

I understand that this might be related to the sensor sensitivity, please let me know how to configure this if you know how.

Answers 1

It means your activity is taking very long to be recreated since every time you rotate the screen, entire activity gets redrawn. It doesn't mean the phone sensor is slow or anything, you just need to optimize your code such that it doesn't load data (whether from internet or local storage) on orientation change but only recreates the layout. Hope I made myself clear.

August 16, 2013 06:56 AM

Related Questions

Internal step while arotation happens

Updated June 16, 2015 12:04 PM

Disable particular orientations, system-wide

Updated April 12, 2017 13:11 PM