BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION intent Extra does not extend 120 sec discovery interval

by Rockwell » Fri, 04 Feb 2011 05:18:24 GMT


Sponsored Links
 We documented this problem on 12/22/2010 as Issue 13361 in the Android
Issue Tracker.  There has been no response.  Has anyone else seen this
problem, and, if so, can you pls suggest a workaround?  Thanks!

+++++++++++++++

300 secs was specified as the EXTRA_DISCOVERABLE_DURATION for the
BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE intent.

As expected, the resultCode subsequently returned via
onActivityResult() was 300 -- indicating success. Also the
Settings>Wireless and network>Bluetooth settings were observed and BT
was found to be 'Visible' and the associated countdown timer started
counting down from 300. All looked fined to this point.  However,
after 120 secs elapsed (when the countdown timer read "Visible for 180
seconds") visibility was lost. At this time, the BroadcastReceiver in
our application received an ACTION_SCAN_MODE_CHANGED message
indicating that the scanmode had changed from
SCAN_MODE_CONNECTABLE_DISCOVERABLE to SCAN_MODE_CONNECTABLE.

Though the API and the Settings display initially indicated success,
the EXTRA_DISCOVERABLE_DURATION of 300 seconds was not honored by the
system -- it evidently remains fixed at 120 seconds.

If EXTRA_DISCOVERABLE_DURATION is set to 300 seconds and the
resultCode returned in onActivityResult() is 300, then I expect BT to
be in  SCAN_MODE_CONNECTABLE_DISCOVERABLE mode for 300 secs (not 120
secs).

Env:
Device: SAMSUNG-SGH-I897
Firmware: 2.1-update1
Kernel:2.6.29
Build: ECLAIR.UCJH7



-- 



Other Threads

1. m4v files in android

Hi all

I am developing a simple application to play m4v files

while try to play the m4v files it shows exception

E/QCvdecH264(   31): get_parameter: unknown param 0ff7a347
W/QCvdec  (   31): vdec: opened
W/QCvdec  (   31): VDL_Configure_HW: Interface Not supported
E/QCvdec  (   31): Driver Layer hardware config failed with error code
7
W/QCvdec  (   31): error - H264Decoder::InitializeDecInternal()
failed!!
W/QCvdec  (   31): There is no input node available
E/QCvdec  (   31): partner/qct/proprietary/libOmxH264Dec/
vdecoder_i.cpp:952 *** ERROR ASSERT(0)
W/        (   31): [vdec_core] vdec_queue error: 5
W/        (   31): [vdec_core] frame buffer malloc failed, index: 8
W/QCvdec  (   31): Unable to allocate buffers (out of memory)
W/QCvdec  (   31): VDL_Configure_HW: Interface Not supported
E/QCvdec  (   31): Driver Layer hardware config failed with error code
7
W/QCvdec  (   31): error - H264Decoder::InitializeDecInternal()
failed!!


Is Android supports m4v files??

need help

Thank you
Dilli


--~--~---------~--~----~------------~-------~--~----~

2. is there a standard EULA?

Hello folks,

I've read a couple of posts about handling EULAs and was wondering:

Is there a standard EULA for apps on the Android Marketplace?

If not, can there be and should there be?

(If I understand correctly) all apps for the iPhone are subject to a
standard agreement (the iTunes EULA) found at (http://www.apple.com/
legal/itunes/appstore/dev/stdeula/). Crucially, this allows the buyer
to know what they are agreeing to BEFORE purchasing the app. It seems
that with the Android model, everyone is responsible for their own
license and the buyer doesn't know what they're agreeing to until
after paying. This would seem to be a shrink-wrap license which is
questionable, at least in US courts. (http://en.wikipedia.org/wiki/
EULA)

Certainly some cases may merit a non-standard EULA, but it seems like
it would do developers a huge favor to offer a standard license for
the 99% of apps/games that don't need anything special. At the same
time, it would eliminate a confusing situation for consumers who don't
know what they are agreeing to anyway.




--~--~---------~--~----~------------~-------~--~----~

3. Play Sound : Application Not Responding

4. XML Layout Inheritance possible?

5. HTC dream compile option for G1

6. Thread stopping

7. How to get the current battery level of the device using an API call