android:configChanges 选项 -Android

标签 android android-manifest

我知道我们可以将以下值设置为 android:configChanges

mcc 
mnc    
touchScreen
keyboardHidden
orientation,etc.

有时我们通过这个 | 运算符将它们连接起来,但我很困惑连接它们的含义是什么。会发生什么变化..?请解开我的困惑。

而且你怎么知道通过使用 | 这个运算符该选项会发生什么?

最佳答案

当你加入

mcc、mnc、触摸屏、键盘隐藏、方向等

by | 它实际上将所有参数一起考虑。

就像当mcc更改或mnc更改或屏幕方向更改时, Activity 不应受到影响。或者键盘弹出或弹出 无论您使用 | 添加哪个参数,都将被考虑。

mcc

The IMSI mobile country code (MCC) has changed — a SIM has been detected and updated the MCC.


mnc

The IMSI mobile network code (MNC) has changed — a SIM has been detected and updated the MNC.

touchscreen

The touchscreen has changed. (This should never normally happen.)

关于android:configChanges 选项 -Android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13116603/

相关文章:

java - LocationManager requestLocationUpdates minTime OR minDistance

android - 匹配屏幕宽度和图像高度的可点击图像

android - 亚马逊实时应用程序测试购买: Can testers use a build downloaded from Amazon Underground to test purchases?

android - 这些权限是什么?

android - 我只能在某些版本的 Android 中需要权限吗?

android - 如何动态添加元数据(不在 list 中,而是在代码中)?

android - 如何为我的应用指定最低内存要求

android - 为什么 MapView onTouchListener 只触发一次?

android - Proguard retrace.sh 堆栈

android - list 合并失败 : uses-sdk:minSdkVersion 1 cannot be smaller than version 14 declared in library