I want my application to run with minimum api level 8…I tried with android:configChanges=”orientation|keyboardHidden”..In lower versions,onConfigurationchanged() method is getting called and orientation is handled..but when i run in 3.2 and higher versions onConfigurationchanged() is not called and activity is re-created.
So i added android:configChanges=”orientation|keyboardHidden|ScreenSize” but when i compiled this my application cannot run in versions below 3.2 ICS..what should i do to handle the configuration change in all versions from 2.2 to 4.0.1 without re-creating the activity?
I want my application to run with minimum api level 8…I tried with android:configChanges=orientation|keyboardHidden..In
Share
Did you set the
targetSdkVersionin the manifest? For example,Your code should work as long as your
targetSdkVersionis greater than or equal to13. Make sure you are building your project against SDK version3.2or greater as well.