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

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

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

Device: SAMSUNG-SGH-I897
Firmware: 2.1-update1


Other Threads

1. Reg: Mobile Applications For Your Organization

Dear Partner,

Greetings, hope this mail finds you well. This is Jonathan
representing WINIT. We propose to give you a great solution that would
enable you to save 60% of your development costs.

We at WINIT are a strategy firm providing clients with a complete
package of solutions to identify and meet all their IT requirements.
Our 13 yrs of expertise in Web development and almost 4 years on
mobile application development for IPhone, Blackberry, Android,
Windows Mobile, Symbian, J2ME, BREW and close to 42 applications on
iPhone, Android and Blackberry have enabled us to create strategies
for startups and existing companies. Here how we can help you.



IPhone, Blackberry, Android, Windows Mobile, Symbian, J2ME, BREW  etc


1)We will allocate a team of dedicated mobile developers for your
project. This team would work for the price of just one developer
2)We can create mockups or prototypes that you could use a proof of
concept to attract investors to your business.
3)Once you like the prototype we will build the entire application.
The reason behind this is to save time on app development    and you
would save costs to a great extent by avoiding constant changes.
4)We can port your iPhone app into Android or Blackberry.
5)We are available 24/7 as we work for clients throughout the globe.
6)Our strategists can add ideas to your application and bring out the
best functionalities
7)We offer you a lifetime free support for fixing any bugs or issues
that may arise after production.

Please feel free to visit our website with our mobile portfolio at and

We look forward to work with you and have a lasting business
relationship. Kindly give us a time to give you a call and discuss the
potential opportunities we could explore and how you could save costs
and make profits.

Have a great day ahead.

Thanks and Regards,
Jonathan Rees,
Business Development,
WINIT Software
Ph: 646-202-1011

The contents of this message are confidential and proprietary to WINIT
Software Inc. and unauthorized possession or use may have legal
consequences. If you are not the intended recipient of this message,
please a reply with EMOVEin the subject line , and notify the
Thank You
*conditions apply


2. List Render Exception

hi guys,

i'm new to android development

in my application i'm try to render a list but when i run the
application i'm getting this dialogBox.

The Application has stopped unexpectedly please try again

any idea about this??

this is my java class

public class myFirst extends ListActivity {
    /** Called when the activity is first created. */
        //Button btn;
        TextView selection;
        String[] items ={"Sabre","Virtusa","Micro Image","ECollage","IFS"};

    public void onCreate(Bundle savedInstanceState) {
        //setListAdapter(new ArrayAdapter<String>
        selection = (TextView) findViewById(;
      //  btn = (Button) findViewById(;
       // btn.setOnClickListener(this);

    public void onListItemClick(ListView Parent,View v,int
posistion,long id) {


this is my main.xml


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="
    android:text="User Name :"
</LinearLayout >


3. Why loghack.h is needed under system/core/libcutils/ folder? Why <cutils/log.h> can not be used in libcutils module?

4. Purchasing Android Software - Syntax problems with the market app

5. Coding for Charity - A Holiday Coding Adventure

6. sw keyboard - listen TextWatcher but keep EditText widget hidden

7. Is there any way to invoke the device lock screen?