How to check Bluetooth On/Off state in J2ME?
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.
精彩评论