Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Archived:New Bluetooth discovery should not be started from within DiscoveryListener's callback methods (Known Issue)

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.

Article Metadata
Tested with
Devices(s): All S60 3rd Edition and S60 3rd Edition, Feature Pack 1 devices
CompatibilityArticle
Created: User:Technical writer 1 (28 Nov 2007)
Last edited: hamishwillee (23 Jul 2013)

Overview

Bluetooth MIDlet fails starting new device and service discoveries when calling such methods from within DiscoveryListener.inquiryCompleted and DiscoveryListener.searchServicesCompleted callback methods.

Description

For service discovery, a new service discovery cannot be started with DiscoveryAgent.searchServices from within the DiscoveryListener.serviceSearchCompleted callback method. If searchServices is called from within serviceSearchCompleted, the searchServices call does not fail, but the servicesDiscovered will not be called again. The same applies for device discovery when calling DiscoveryAgent.startInquiry from within the DiscoveryListener.inquiryCompleted method.

Solution

The problem has been fixed in S60 3rd Edition, Feature Pack 2. For previous releases, try starting a new device and service discovery when the previous discovery has completed (that is, after serviceSearchCompleted and DiscoveryListener.inquiryCompleted have returned).

This page was last modified on 23 July 2013, at 07:36.
79 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×