All About Symbian - Nokia (S60) and Sony Ericsson (UIQ) smartphones unwrapped

  #1  
Old 10-01-2006, 06:29 AM
sraza sraza is offline
Registered User
 
Join Date: Oct 2005
Posts: 8
sraza is on a distinguished road
Location API of Series 60 2nd Edition FP2

Hello ,

I am trying to develop a location enabled application using the Location API's of Series 60 2nd Edition FP2 . I use Nokia 6680 (Symbian 7.0s FP2) for testing purposes.
To begin with, I have tried writing a small code snippet that is expected to show the Location of the user.
This code snippet is taken as is from the SDK documentation for Series 60 2nd Edition FP2.
The code is as follows :

Code:
void CappShowLocationContainer::ShowLocation()
{

    
    User::LeaveIfError(server.Connect());

    CleanupClosePushL(server);

    User::LeaveIfError(positioner.Open(server)); // use default positioning module

    CleanupClosePushL(positioner);

    _LIT(KCntPhone, "+9892348624");

    _LIT(KSrvName, "MyService");

    CRequestor* contact = CRequestor::NewLC(

                                    CRequestor::ERequestorContact,

                                    CRequestor::EFormatTelephone,

                                    KCntPhone);

                                    stack.Append(contact);

CRequestor* service = CRequestor::NewLC(

                                    CRequestor::ERequestorService,

                                    CRequestor::EFormatApplication,

                                    KSrvName);

stack.Append(service);

User::LeaveIfError(positioner.SetRequestor(stack));

positioner.NotifyPositionUpdate(posInfo, status);

User::WaitForRequest(status);

User::LeaveIfError(status.Int());

posInfo.GetPosition(position);



// Issue a new Location Request

positioner.NotifyPositionUpdate(posInfo, status);

User::WaitForRequest(status);

User::LeaveIfError(status.Int());

// Cleanup

stack.Reset();

CleanupStack::PopAndDestroy(service);

CleanupStack::PopAndDestroy(contact);

CleanupStack::PopAndDestroy(&positioner); // this will call Close() method

CleanupStack::PopAndDestroy(&server); // this will call Close() method


}
Now, when I put this on the phone a strange thing happens. Instead of pulling up the location information , the phone starts searching for bluetooth devices and even on selecting the present device nothing happens.
Could you tell me whats wrong with the code or do I need to add something to make it work ?

Thanks a lot
Ads

  #2  
Old 10-01-2006, 07:16 AM
N/A's Avatar
N/A N/A is offline
Registered User
 
Join Date: Mar 2003
Posts: 8,132
N/A is on a distinguished road
Don't know much about location APIs, but I perhaps the phone is looking for a Bluetooth GPS module to get the location?
 

Bookmarks

Tags
2nd, api, edition, fp2, location, series

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
full specification about nokia phones (CPU,RAM,MEMORY) abu_alameer S60 (Series 60) 3 11-02-2013 06:05 AM
Download - Series 60 SDK, 3rd Edition sinu S60 Software 1 05-06-2005 06:16 PM
Nokia announces Series 90 and 7700 langdona Symbian OS News 11 24-05-2005 04:52 AM
Here Comes Series 60 Version 3 Ewan Series 60 4 17-02-2005 01:07 PM



All times are GMT. The time now is 11:59 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright Notes || Contact Us || Privacy Policy