[android-developers] Re: How to know whether bluetooth is enabled/disabled

2010-07-15 Thread Arjun
Thanks Don. On Jul 9, 11:50 am, DonFrench dcfre...@gmail.com wrote: This is the way I do it.  I also want to know if the app is running in the emulator so I first check if there is a default adapter. BluetoothAdapter sBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); if

[android-developers] Re: How to know whether bluetooth is enabled/disabled

2010-07-09 Thread DonFrench
This is the way I do it. I also want to know if the app is running in the emulator so I first check if there is a default adapter. BluetoothAdapter sBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); if (sBluetoothAdapter == null) { // Bluetooth is not availabl EMULATOR =