×

Discussion Board

Results 1 to 1 of 1
  1. #1
    Registered User
    Join Date
    Sep 2011
    Posts
    19

    Getting the GPS coordinates on Nokia N9

    every body
    I’m trying to do a Meego application that can read the GPS coordinates from the phone
    This is my code

    main.qml
    Code:
            Position
            {
                id: firstRead
            }
    
            PositionSource {
                id: positionSource
                active: true
                updateInterval: 1000
                onPositionChanged:
                {
                    console.log("("+positionSource.position.coordinate.latitude+" , "+positionSource.position.coordinate.longitude+" )")        
                }
    		
    		}
    .pro file
    Code:
    CONFIG += mobility
    MOBILITY = location systeminfo
    # Allow network access on Symbian
    
    
    unix:!symbian:!maemo5 {
        # Self-signing capabilities
        TARGET.CAPABILITY += NetworkServices \
            ReadUserData \
            WriteUserData \
            LocalServices \
            UserEnvironment \
            Location
    
        # QtMobility Messaging module needs these capabilities
        contains(DEFINES,MESSAGING_ENABLED) {
            # Additional capabilities that needs Open Signed Online signing
            TARGET.CAPABILITY += ReadDeviceData WriteDeviceData
        }
    
        # For locked orientation and image conversion
        LIBS += -lcone -leikcore -lavkon
    }

    With this code I can see the GPS icon in the status bar but I can’t read the GPS coordinate (I tried other application in the store and the Nokia map and it works perfectly)

    Thanks in advance
    Last edited by boumacmilan; 2013-03-26 at 14:07.

Similar Threads

  1. Nokia maps: save coordinates of a place
    By m2la in forum General Development Questions
    Replies: 1
    Last Post: 2012-11-19, 10:27
  2. How can send coordinates or launch Nokia Maps?
    By Hugher in forum [Archived] Qt Quick
    Replies: 10
    Last Post: 2012-04-27, 16:58
  3. converting coordinates in pixel -> m3g coordinates
    By Kayron in forum Mobile Java General
    Replies: 0
    Last Post: 2011-02-27, 21:33
  4. Replies: 2
    Last Post: 2010-05-25, 05:14
  5. problem sending GPS coordinates from nokia 6110 ..help
    By amishra in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2008-08-14, 12:17

Posting Permissions

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