问题
Is it possible to change AndroidManifest.xml
in runtime programatically? If it is possible, how can I change the following programatically int he AndroidManifest while running app?
android:configChanges="orientation|keyboardHidden"
回答1:
No - it's not possible to change the Android AndroidManifest.xml
in runtime.
But, you CAN do changes in runtime programatically - see here (look for onConfigurationChanged
).
回答2:
There is no way to set the configChanges attribute programmatically
来源:https://stackoverflow.com/questions/12870148/how-to-change-androidmanifest-in-runtime