Chen Ganir wrote:
> I'm looking at the BluetoothService. The BluetoothService implements a
> mechanism to disable the discoverable mode after 120 seconds (in
> function setScanMode). However, if the system goes to sleep before
> that, what happens to the discoverable mode?

You assume they are not holding a WakeLock somewhere.

> Why did google implement this
> mechanism like this, and not with an alarmManager to prevent such a
> problem?

Because the device needs to be on for Bluetooth discovery to work, most
likely.

However, all of this is a firmware question. Further discussion on that
belongs either on [android-framework] (if you are looking to contribute
changes) or on [android-platform] (if you are not). This list is
primarily for SDK-level development.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_
Version 1.3 Available!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to