Arf Well-Known Member Licensed User Longtime User Oct 11, 2019 #1 I've got this simple little bluetooth project that is based on the newer Bluetooth Chat example. The newer example uses a BluetoothManager class. I must have done something wrong with my project alterations at some point, because now I always get a false returned from "admin.StartDiscovery". I can't work out what I have done to break it. If anyone wants to cast an eye over it I would be really grateful. A zip of the project can be found here: https://www.dropbox.com/s/mv5kpqsx3f0fkoo/myproj.zip?dl=0 If you run the project there's only one screen, if you click the PAIR button, you'll see a toast message pop up indicating the scan didn't start. Thanks.
I've got this simple little bluetooth project that is based on the newer Bluetooth Chat example. The newer example uses a BluetoothManager class. I must have done something wrong with my project alterations at some point, because now I always get a false returned from "admin.StartDiscovery". I can't work out what I have done to break it. If anyone wants to cast an eye over it I would be really grateful. A zip of the project can be found here: https://www.dropbox.com/s/mv5kpqsx3f0fkoo/myproj.zip?dl=0 If you run the project there's only one screen, if you click the PAIR button, you'll see a toast message pop up indicating the scan didn't start. Thanks.
Erel B4X founder Staff member Licensed User Longtime User Oct 12, 2019 #2 1. Does the example work (https://www.b4x.com/android/forum/threads/android-bluetooth-bluetoothadmin-tutorial.14768/) ? 2. Are you requesting the COARSE LOCATION permission? Upvote 0
1. Does the example work (https://www.b4x.com/android/forum/threads/android-bluetooth-bluetoothadmin-tutorial.14768/) ? 2. Are you requesting the COARSE LOCATION permission?
Arf Well-Known Member Licensed User Longtime User Oct 12, 2019 #3 Ah yes, it was the permission. Thank you. Upvote 0