Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 11:42, 1 November 2007.

TSS000773 - RPositioner API: Detecting that user has canceled Bluetooth device selection

From Forum Nokia Wiki


ID TSS000773 Creation date November 1, 2007
Platform S60 3rd Edition Devices All S60 3rd Edition devices
Category Symbian C++ Subcategory Connectivity

Description

When an application uses the GPS capabilities to get the position information, an error is returned from the GPS Requestor if no GPS position method is set. However, if Bluetooth GPS is available but the user cancels the connection request when prompted, there seems to be no response from the Requestor.


Solution

When the Bluetooth GPS is enabled and the Bluetooth selection dialog is canceled, the KPositionQualityLoss error in the RunL of NotifyPositionUpdate method is returned. If the device status is now requested using the RPositionServer GetModuleStatus API, EDeviceError is returned, and this indicates that the dialog has been canceled.

The code snippet for getting the device status is

TPositionModuleId iModule;
    TPositionModuleStatus iModuleStatus;
    iPosServer.GetDefaultModuleId(iModule); 
    iPosServer.GetModuleStatus(iModuleStatus,iModule);
    TInt err = iModuleStatus.DeviceStatus();
    //err contains EDeviceError in this case.
Related Discussions
Thread Thread Starter Forum Replies Last Post
Urgent answer pls Firmware & MIDLet 2.0 question ASAP? ManiDCI Mobile Java General 2 2005-06-26 15:17
How to select a text? qt_raip Symbian Tools & SDKs 4 2004-05-13 07:23
Bluetooth Detection? btuman Bluetooth Technology 1 1970-01-01 02:00
Bluetooth and Symbian OS (9200 Communicator and 7650)? ask_expert Bluetooth Technology 1 2002-05-10 17:37
New Python version ueffchen Mobile Web Server 6 2007-07-18 12:53
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZbluetoothQ
     qfnZtopicQUqfnTopicZconnectivityQ
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZKnowledgeBaseContentQ
     qfnZtypeQUqfnTypeZTechnicalSolutionQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX