Karan Khurana
Karan Khurana
@divjad--- pls list all the new permissions you added, because with original code, I'm unable to detect available devices.
First add this library by google: implementation 'pub.devrel:easypermissions:3.0.0' Then Add these lines to add location permission : private final int REQUEST_LOCATION_PERMISSION = 1; @Override public void onRequestPermissionsResult(int requestCode, String[] permissions,...
what permissions you are using ??
I'm also working on same bluetooth connect, as soon as i have a proper working code, I'll post .
Have you asked permissions at run time ??
This will show Classic Bluetooth devices only
Add these lines as well, to turn on GPS as well without it your bluetooth won't detect nearby devices. protected void createLocationRequest() { LocationRequest locationRequest = LocationRequest.create(); locationRequest.setInterval(10000); locationRequest.setFastestInterval(5000); locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);...
I receive the same erro while processing the request.  look at the error, please revert back asap.