who is sending orientation changed event in android
I observed one problem in status bar that while we open it from the home screen and change the device to landscap开发者_JS百科e mode, the orientation of the status bar is not changed to landscape, but if we open any applications like messaging in which their orientation is changed according to device orientation and then open the status bar, it will also change the orientation.
That means keeping an application who orientation is constant in background and then opening the status bar will have this problem that orientation of status bar also becomes constant.
Please give me some suggestions so that I can rectify this problem. If I could know that who is parsing the xml file and if android:configChanges="keyboardHidden|orientation" is present in the manifest file who is deciding not to send Intent.ACTION_CONFIGURATION_CHANGED
you should prepaire to create landscape layout also.
for landscape mode-> layout-land for portrait mode-> layout
android:configChanges="keyboardHidden|orientation" , this tag used when we dont want to change state in our activity when orientation is changed
if android:configChanges="keyboardHidden|orientation" is present in the manifest file then our activity will handle itself one or more configuration changes that we specify and need not to handle by android system.
That means when we use android:configChanges="keyboardHidden|orientation" we tell android system that our activity itself controll this configuration change.
精彩评论