How to change AndroidManifest in runtime?

只谈情不闲聊 提交于 2021-02-16 04:38:28

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!