如何在运行时更改AndroidManifest? [英] How to change AndroidManifest in runtime?

查看:100
本文介绍了如何在运行时更改AndroidManifest?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在运行时以编程方式更改 AndroidManifest.xml ?如果有可能,我该如何在运行应用程序时以编程方式在AndroidManifest中更改以下内容?

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"

推荐答案

否-无法在运行时更改Android AndroidManifest.xml .
但是,您可以通过编程方式在运行时中进行更改- 参见此处 (查找 onConfigurationChanged ).

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).

这篇关于如何在运行时更改AndroidManifest?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆