isBluetoothA2dpOn() This method was deprecated in API level 26. Use AudioManager#getDevices(int) instead to list available audio devices. Could you add a documentation so that I can make the required changes in the java file? Thanks,