飞行模式(AIRPLANE_MODE_RADIOS与AIRPLANE_MODE_TOGGLEABLE_RADIOS)

飞行模式(AIRPLANE_MODE_RADIOS和AIRPLANE_MODE_TOGGLEABLE_RADIOS)定义了在飞行模式下关闭的无线设备列表。默认情况下,开启飞行模式会关闭蓝牙、Wi-Fi、NFC和cell/wimax,但蓝牙、Wi-Fi和NFC可在设置中重新启用。这些配置存储在全局设置文件中,可由APP或框架通过Settings数据库访问。
摘要由CSDN通过智能技术生成

AIRPLANE_MODE_RADIOS如下面的描述,该值表示在飞行模式打开时,需要关闭的Radios列表,

列表内的Items以逗号区分;例如:"bluetooth,wifi"

6014        /**
6015         * A comma separated list of radios that need to be disabled when airplane mode
6016         * is on. This overrides WIFI_ON and BLUETOOTH_ON, if Wi-Fi and bluetooth are
6017         * included in the comma separated list.
6018         */
6019        public static final String AIRPLANE_MODE_RADIOS = "airplane_mode_radios";


AIRPLANE_MODE_TOGGLEABLE_RADIOS如下面的描述,该值表示在飞行模式打开时,列表中的Radios需要被关闭,但用户可以重新打开,例如,从Settings APP重新打开。列表内的Items以逗号区分;例如:"bluetooth,wifi"

6021        /**
6022         * A comma separated list of radios that should to be disabled when airplane mode
6023         * is on, but can be manually reenabled by the user.  For example, if RADIO_WIFI is
6024         * added to both AIRPLANE_MODE_RADIOS and AIRPLANE_MODE_TOGGLEABLE_RADIOS, then Wifi
6025         * will be turned off when entering airplane mode, but the user will be able to reenable
6026         * Wifi in the Settings app.
6027         *
6028         * {
  @hide}
6029         */
6030        public static final String AIRPLANE_MODE_TOGGLEABLE_RADIOS = "airplane_mode_toggleable_radios";

 

Radios列表项包括如下:

5990        /**
5991         * Constant for use in AIRPLANE_MODE_RADIOS to specify Bluetooth radio.
5992         */
5993        public static final String RADIO_BLUETOOTH = "bluetooth";
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值