Extension Suggestion: Switch on Bluetooth and Location

Hi everyone, there are several extensions that switch on Bluetooth and that does also work via Activity Starter comfortably.

The idea, as explained, is to handle both settings required for BT to work.

You mean they are not able to Enable Bluetooth Low Energy Functions?

Without Location switched on, bluetooth does not work. This is a Google Android Security feature. BLE requires Fine Location (Could be Android Version dependant as to whether 'fine' is even available).

I will google for the appropriate method and add it to the extension. Although ActivityStarter should work on all devices. Unless some Huaweie that are not compatible with google do not support everything.

Activity Starter does work on all devices but that particular activity creates User interface issues on some devices - Huawei not guilty...... Samsung most prevalent, then lesser makes such as Redmi and Alcatel. Probably depends on device model and Android Version. Not sure really why Google make Location so inaccessible if they want Apps to use it.

Location API is a part of Play Services which can do this thing.

This Activity works fine on my samsung S8.

I think it works fine on several Samsung Models, but is not fine on several others.

Aha - that is the baby! It's worth noting that the nrf BLE App does deal with Switching on Bluetooth and Location elegantly. We want to match that.

Sorry, couldn't understand that.

Such extension is possible but will need Bluetooth_Admin permission

1 Like

I built the extension, here is the aix for bluetooth Toggle

BluetoothToggle.aix (5.1 KB)

Kindly test and tell if it works

PS: Don't forget to use Bluetooth_Admin permission : )

3 Likes

nrf Nordic Semi conductor, the developers of an App for BLE (they make microcontrollers, some similar to Arduino but mostly industry standard).

Sorry Know_About_IT, there are already several extensions for Bluetooth, see the Specification for the Extension required above.

Ok sir, I will try all the possible methods of Bluetooth Adapter Class

That's the missing link :hedgehog:

Hello its been a year+ since the last post and i was wondering if there has been made an extension that could turn on the location without user interaction.. I use hc-05 modules and if i turn on only the bluetooth without the location, it cant detect it...

ps Does anyone know why you have to enable both of them in order to detect Hc-05 modules? Because wireless headphones for example work without having the location enabled.

Regards

Unfortunately this is not possible anymore... Google restricts the Android system more an more. ..

Taifun

1 Like

Thank you very much for your reply! Do you know how the bluetooth assosiates with the gps of the phone?
I mean why you have to enable the location so it can discover devices?

essa extensão é muito boa e simples de usar, parabens.

1 Like