Hi Everyone,

I am developing an app. I have to make the device visible to others.
I am using the below snippet code.

Intent discoverableIntent = new
        Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);
discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 180);
context.startActivity(discoverableIntent);


The question is it can't work all the time. Sometimes it failed to get it 
truned on.


Has anybody experienced this ? Any help would be appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/b1209e22-aa98-46fa-bc21-e1bc897aa157%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to