connectivity-samples
connectivity-samples copied to clipboard
Trouble with the working of the app.
I have got two set of android mobile phone with BLE enabled. And app also successfully gets installed on both. But neither of them are showing the result, means 'No devices found-....'. I have turned on mobile broadcast device option on, and other for scanning. Still showing the same. Help me here, why is this happening, and what is the solution for this? @google-automerger
I have got the same problem here. I even tried to comment out the line builder.setServiceUuid(Constants.Service_UUID);
. It still can't find any device, even though other app from the same phone can.
Is there a fix for this issue, it defeats the purpose of prototyping if the code base does not even do the basic, identifying the beacon device and broadcasting.
please check in the fix or provide and idea of what the issue is.
Anyone has any luck with this. I have tried to add the runtime permission for location service but didnt make any difference.
I seem to have run into the same issue here. Fresh download, fresh import in Android studio. Checked for required libraries, and subsequently build and deployed to two devices. None of them seem to be able to identify the other.
I have found a solution. Since API 21 (=SDK 21?) Bluetooth LE apps are required to have permissions for location information. The simplest solution I found to this example was to add the following lines to AndroidManifest.xml:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
Then, after rebuild, go into (the Android device) Settings | Apps | YourApp and select Permissions and enable location services. Now, the scan will discover other advertisers (yes, remember to comment out builder.setServiceUuid(Constants.Service_UUID); if you want to scan all).