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 = true; } else EMULATOR = false; ... if (!EMULATOR) { if (!sBluetoothAdapter.isEnabled()) { // Bluetooth is not enabled } On Jul 9, 9:25 am, Arjun <arjunf...@gmail.com> wrote: > Greetings, > > How can I know whether bluetooth is enabled or disabled. > > Thanks, > Arjun. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en