In Manifest file what is config.uses and config.orientation/config.keyboard
Generally when ever there is a configuration change in the phone, like screen orientation changes [or] soft keyboard availability [or] language changes, in these scenarios android will automatically kill and restart your activity to take the new resources effective.
But you have the choice of requesting android to not restart your activity, and you can handle configuration changes on your own.
This can be done by using android:configChanges property in your activity tag, of your manifest.xml file.
The above activity tag says to android that, don't kill and restart my activity in case of screen orientation or keyboard availability.
Instead android will call onConfigurationChanged() of your activity.
<uses-configuration> tag indicates what all hardware and software features are required for your application.
Back To Top