Java Android Bluetoothadapter Override?

Asked

Viewed 49 times

0

I’m developing an app that uses the Bluetoothadapter class... it doesn’t work the way I need it. But I went to try to override the class, but she won’t allow it.

When we pass the Bluetoothadapter parameter, we’re 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, not ask and already activate, How would be the override of a class of this type ? how to edit ? how to make bluetooth on without asking if it really wants ? is possible ? if not, I am the developer because it is not possible ? '-'

  • 1

    It is not possible for security reasons. As a user of an android phone you would like a program to connect the Bluetooth or the GPS without you knowing?

  • The person will press the Button to activate, without requiring that message Box... has nothing to do with activating alone. You read my question ?

  • 1

    How does the Android OS know that you asked the user if you could turn on the Bluetooth?

  • oxi... this is my question, I want to give Override or any other function that allows you to rewrite... so I can manipulate this, I want to know how to do, I want my app to guarantee to the OS that the question was asked and was confirmed... take your mobile and activate the bluetooth, ve if he has returned any question :B

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.