Android screen rotation takes too long to get triggered

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

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

Updated June 18, 2015 23:04 PM

Updated June 16, 2015 12:04 PM

Updated July 01, 2015 13:04 PM

Updated April 12, 2017 13:11 PM

Updated July 13, 2017 10:11 AM