Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-1957

PositionSource doesn't work on Symbian in China

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 1.2.x
    • Fix Version/s: None
    • Component/s: Location
    • Labels:
      None

      Description

      The following piece of code works on MeeGo Harmatann N9 and not on Symbian Anna, Belle.

      The customer is located in China and it is mentioned that Cell-id positioning was used.

      import Qt 4.7
      import QtMobility.location 1.2
      
      Rectangle {
              id: page
              width: 360
              height: 640
              property bool sp: true
              PositionSource {
                  id: positionSource
                  updateInterval: 1000
                  active: false
              }
              Column {
                  Text {text: "<==== PositionSource ====>"}
                  Text {text: "positioningMethod: "  + printableMethod(positionSource.positioningMethod)}
                  Text {text: "nmeaSource: "         + positionSource.nmeaSource}
                  Text {text: "updateInterval: "     + positionSource.updateInterval}
                  Text {text: "active: "     + positionSource.active}
                  Text {text: "<==== Position ====>"}
                  Text {text: "latitude: "   + positionSource.position.coordinate.latitude}
                  Text {text: "longitude: "   + positionSource.position.coordinate.longitude}
                  Text {text: "altitude: "   + positionSource.position.coordinate.altitude}
                  Text {text: "speed: " + positionSource.position.speed}
                  Text {text: "timestamp: "  + positionSource.position.timestamp}
                  Text {text: "altitudeValid: "  + positionSource.position.altitudeValid}
                  Text {text: "longitudeValid: "  + positionSource.position.longitudeValid}
                  Text {text: "latitudeValid: "  + positionSource.position.latitudeValid}
                  Text {text: "speedValid: "     + positionSource.position.speedValid}
                  Rectangle {
                      width: 100
                      height: 50
                      color: sp? "red":"blue"
                      MouseArea {
                          anchors.fill: parent
                          onClicked: {
                              if(sp){
                                  positionSource.start()
                                  sp=false
                              }else {
                                  positionSource.stop()
                                  sp=true
                              }
                          }
                      }
                  }
              }
              function printableMethod(method) {
                  if (method == PositionSource.SatellitePositioningMethod)
                      return "Satellite";
                  else if (method == PositionSource.NoPositioningMethod)
                      return "Not available"
                  else if (method == PositionSource.NonSatellitePositioningMethod)
                      return "Non-satellite"
                  else if (method == PositionSource.AllPositioningMethods)
                      return "All/multiple"
                  return "source error";
              }
          }
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            shmahesh Shilpa Maheshwari
            Reporter:
            cadam Cristian Adam
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes