connectivity-samples icon indicating copy to clipboard operation
connectivity-samples copied to clipboard

Trouble with the working of the app.

Open AdityaRajKanha opened this issue 8 years ago • 6 comments

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

AdityaRajKanha avatar Aug 06 '16 14:08 AdityaRajKanha

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.

dafang982 avatar Aug 31 '16 22:08 dafang982

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.

ssossou avatar Oct 26 '16 14:10 ssossou

please check in the fix or provide and idea of what the issue is.

ssossou avatar Oct 26 '16 14:10 ssossou

Anyone has any luck with this. I have tried to add the runtime permission for location service but didnt make any difference.

sentinelfm avatar Dec 27 '16 14:12 sentinelfm

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.

Danta1st avatar Jun 17 '17 11:06 Danta1st

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).

arne1964 avatar Nov 29 '17 10:11 arne1964