Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User myuuuu's Avatar
    Join Date
    Jan 2008
    Posts
    19
    I developed an application tt can geotag photos. However, I want my camera application not to capture an image if GPS information such as longitude and latitude cannot be retrieved sucessfully. I have read through the APIs but I still not sure how I can do so. Which is the variable or method that actually tells you that a GPS request is not sucessful(which I think is caused by when GPS sattelites cannot be detected)? Please help. Thank you.

  2. #2
    Nokia Developer Moderator ltomuta's Avatar
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,335
    Location info is retrieved asynchronously and in active object's RunL method you will have yo check whether iStatus.Int() is KErrNone or something else (note that not everything else means a real error).

    Aside from that you can also check the returned Latitude and Longitude values and if they are not NaN the all is OK.

  3. #3
    Regular Contributor Bernd42's Avatar
    Join Date
    Jan 2004
    Location
    Braunschweig, Germany
    Posts
    345
    In your RunL menthod where you are notified updates of the coordinates you will also get a error code KPositionQualityLoss in the iStatus member variable when the GPS fix is lost.

    Othewise checking the long/lat values for KNaN should be sufficient in most cases, like ltomuta said.

    Bernd

Similar Threads

  1. GPS on N95
    By kvr0 in forum Symbian C++
    Replies: 0
    Last Post: 2007-05-11, 10:22
  2. Prototype SDK 2.0 setup problem
    By jackmcardle in forum Mobile Java Tools & SDKs
    Replies: 4
    Last Post: 2007-01-09, 16:21
  3. GPS Information needed
    By swapnilgp in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2006-05-01, 15:07
  4. GSM/GPRS Drivers check FAILED
    By hblume in forum Multimodecards
    Replies: 3
    Last Post: 2004-01-28, 21:37
  5. User Agent HTTP request information
    By Nokia_Archive in forum Mobile Web Site Development
    Replies: 1
    Last Post: 2002-05-14, 17:20

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved