I found many query regarding Bluetoothadepter return null values, “Devise not supported on higher android version”, “Emulator don’t turn on Bluetooth using Bluetooth adapter”, “Why emulator not support Bluetooth”.
But the entire above question has a single answer.
Your installed emulator must not any Bluetooth device. So BluetoothAdapter simply check your device supporting and have a Bluetooth device.
So try it your own android mobile through install android APK file in your mobile.
Useful: How to create and install apk file from your project?
bluetoothadapter.getdefaultadapter returns null > Run in actual android device which has Bluetooth device
To know more about BluetoothAdapter please reader android developer site here
Here is the sample test code and Example for you
But the entire above question has a single answer.
Your installed emulator must not any Bluetooth device. So BluetoothAdapter simply check your device supporting and have a Bluetooth device.
So try it your own android mobile through install android APK file in your mobile.
Useful: How to create and install apk file from your project?
bluetoothadapter.getdefaultadapter returns null > Run in actual android device which has Bluetooth device
To know more about BluetoothAdapter please reader android developer site here
Here is the sample test code and Example for you