Archived:Controlling Bluetooth power state in notifier-initiated situations
Article Metadata
Tested with
Compatibility
S60 3rd Edition, FP1
Article
Contents |
Overview
This article describes how a 3rd party application can temporarily disable Bluetooth connections.
Detailed Description
When the user activates Bluetooth from an S60 Bluetooth application, a central repository key for Bluetooth power state is updated.
To pre-empt Bluetooth connections, an application could monitor the key and set it back to the off state. However, this approach is not enough if Bluetooth is initially off and then started via a notifier; a typical use case is selecting Send via Bluetooth from the Options menu. In this case, although we do get a notification about the central repository key changes, the information is not propagated to the Bluetooth stack.
Solution
In addition to monitoring/setting the value of the central repository key, the CBTMCMSettings class is needed to control the power state of the Bluetooth module directly.

