阅读背景:

如何在Android上检测飞机模式?

来源:互联网 

I have code in my application that detects if Wi-Fi is actively connected. That code triggers a RuntimeException if airplane mode is enabled. I would like to display a separate error message when in this mode anyway. How can I reliably detect if an Android device is in airplane mode?I have code in my application that detects if W




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: