Android 蜂窝飞行模式检测
我在检测蜂巢上启用/禁用的飞行模式时遇到问题,以下广播接收器在除 android 3.0/蜂巢/平板电脑之外的所有版本/集上都能正常工作。
<receiver android:enabled="true" android:name=".ConnectivityReceiver">
<intent-filter>
<action android:name="android.intent.action.SERVICE_STATE"/>
</intent-filter>
</receiver>
谢谢
I am having trouble detecting airplane mode enabled/disabled on honeycomb, the following broadcast receiver works fine on all versions/sets other than android 3.0/ honeycomb/tablets..
<receiver android:enabled="true" android:name=".ConnectivityReceiver">
<intent-filter>
<action android:name="android.intent.action.SERVICE_STATE"/>
</intent-filter>
</receiver>
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果遇到问题,您可以直接轮询
或使用 ACTION_AIRPLANE_MODE_CHANGED
You could directly poll if you are having problems
Or use ACTION_AIRPLANE_MODE_CHANGED