开发者

How to check Bluetooth On/Off state in J2ME?

开发者 https://www.devze.com 2023-01-08 22:51 出处:网络
How can I check whether my device\'s bluetooth is turned on or off? I have tried i开发者_如何学Cspoweron() method but it doesn\'t work. Do your usual operations with Bluetooth. If they throw Bluetoot

How can I check whether my device's bluetooth is turned on or off?

I have tried i开发者_如何学Cspoweron() method but it doesn't work.


Do your usual operations with Bluetooth. If they throw BluetoothStateException, then Bluetooth is off.

0

精彩评论

暂无评论...
验证码 换一张
取 消