Tuesday, March 15, 2011

[android-developers] Re: Bluetooth Adapter.EXTRA DISCOVERABLE not obeyed

I use Nexus 1, and observed that also on other 2.2 device. No other
app is started when I test it.

On 14 ožu, 20:25, Gergely Juhász <jg.sv...@gmail.com> wrote:
> What device do you use exactly?
> It can be a device issue, or some king of third party application
> messes up something.
>
> On 14 March 2011 08:42, Zeljko Devcic <zeljko.dev...@fgmicrotec.com> wrote:
>
>
>
> > I have observed issue with setting up discoverable time. Namely, I am
> > using following intent to start Bluetooth and request observability of
> > max allowed 300 seconds:
>
> > Intent activateBTIntent = new
> > Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);
> > activateBTIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION,
> > 300);
> > startActivityForResult(activateBTIntent,
> > TURN_BLUETOOTH_ON_INTENT);
>
> > In the intent result I get 300, meaning my request is accepted. But,
> > in fact device does not stay observable for that long. I go to
> > Bluetooth settings and monitor status. Discoverable is checked and
> > starts countdown from 300, but when it reaches 180, Discoverable is
> > unchecked and my device is not visible any more. So, even if I set max
> > allowed value, I get default 120 seconds discoverability. Can anyone
> > put more light on this? Thanks a lot.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscribe@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en- Sakrij citirani tekst -
>
> - Prikaži citirani tekst -

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment