I'm developing an app that uses the BluetoothAdapter class ... it does not work the way I need it. But I tried to give an Override in the class, but she did not allow it.
When we pass the BluetoothAdapter parameter, we are actually passing a String from a location, right?
Intent intent = new Intent("android.bluetooth.adapter.action.REQUEST_ENABLE");
or
BluetoothAdapter.ACTION_REQUEST_ENABLE;
With this it returns to the user, a question if he wants to activate bluetooth, I need to edit that as soon as I press the button, do not ask and already activate, How would the override of such a class? how to edit how to make bluetooth activate without asking if it really want? it's possible ? if not, I am the developer because it is not possible? '-'