I am developing an Android application that allows the user to control the central locking system of their car, thereby eliminating the need for a small remote key tag. But according to what I have done so far, every time a user opens the application, his phone must be turned on manually, as it asks for user permission.
So I need to know if there is a way to enable the bluetooth-bluetooth adapter programmatically, so that every time the application starts, the bluetooth of the phone will be turned on automatically.
Hope my question is clear. I am new to Android programming.
Ps - If you are interested in how the connection is made between the phone and the car, there are some schemes and a bluetooth module connected to the microcontroller in the car.
source share