×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Super Contributor
    Join Date
    Sep 2009
    Posts
    732

    what is the mistake in my gps code

    Hi,
    I am try to get gps location but not getting below is my code snippet

    RPositionServer positionServer;
    RPositioner positioner;
    TPositionInfo posInfo;
    TRequestStatus requestStatus;
    TPosition pos;
    positionServer.Connect();
    positioner.Open (positionServer);
    positioner.NotifyPositionUpdate (posInfo, requestStatus);
    User::WaitForRequest(requestStatus);
    if (requestStatus == KErrNone)
    {
    posInfo.GetPosition(pos);

    }
    positionServer.Close();
    positioner.Close();

    But i am not getting i code fails in User::WaitForRequest(requestStatus); and it dont go inside if any body help me
    why i am not going inside if statement what is error ..i am running this code on emulator.

    Thakns & Regards
    Amit

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,091

    Re: what is the mistake in my gps code

    Does this line User::WaitForRequest(requestStatus);, gives any panic code or what?

  3. #3
    Super Contributor
    Join Date
    Sep 2009
    Posts
    732

    Re: what is the mistake in my gps code

    means ? i didnt get

  4. #4
    Super Contributor
    Join Date
    Sep 2009
    Posts
    732

    Re: what is the mistake in my gps code

    http://developer.symbian.com/forum/m...essageID=83215
    this is the link where i took code

  5. #5
    Super Contributor
    Join Date
    Sep 2009
    Posts
    732

    Re: what is the mistake in my gps code

    what do you think is this code is sufficient for getting gps location of mobile ?if not then what else is required ?

  6. #6
    Super Contributor
    Join Date
    Sep 2009
    Posts
    732

    Re: what is the mistake in my gps code

    http://wiki.forum.nokia.com/index.ph...g_GPS_location
    above link show retrieve gps location any one tell me how to use this code in my application. how can i make application using this code to print gps location on console .

  7. #7
    Super Contributor
    Join Date
    Sep 2009
    Posts
    732

    Re: what is the mistake in my gps code

    iSearchLocation = CSearchLocation::NewL(1000000*10,*this);

    wha tis the meaning of this line my class is CSearchLocation .

  8. #8
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: what is the mistake in my gps code

    Quote Originally Posted by amit.mangal View Post
    iSearchLocation = CSearchLocation::NewL(1000000*10,*this);

    wha tis the meaning of this line my class is CSearchLocation .
    CSearchLocation is your class and you are asking us what is the meaning of its initializer and its parameters? You my friend are in serious trouble ...

    Programming cannot be done through copy-pasting code, somehow you have to get the brain involved in the process too. Let's start a new thread and I'll guide you step by step through it all. Ok?
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  9. #9
    Super Contributor
    Join Date
    Sep 2009
    Posts
    732

    Re: what is the mistake in my gps code

    thanks a lot

Similar Threads

  1. GPS data using positioning module in Python s60
    By selimsolmaz in forum Symbian
    Replies: 2
    Last Post: 2009-07-08, 09:26
  2. [moved] GPS positioning module in Python s60
    By selimsolmaz in forum Symbian
    Replies: 0
    Last Post: 2009-07-07, 09:48
  3. Replies: 2
    Last Post: 2007-10-05, 20:40
  4. Replies: 6
    Last Post: 2005-12-19, 19:12
  5. Replies: 2
    Last Post: 2003-11-09, 14:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×