Hellow,
Sorry, but I haven't read this thread the last days.
About Mobility on my device, I have included "Location" capability in the .PRO file, but my application does anything, it doesn't obtain data of location.
This is my code in .PRO file:
CONFIG += mobility
MOBILITY = location
symbian: {
TARGET.UID3 = 0xe8355e9c
TARGET.CAPABILITY ="NetworkServices ReadUserData WriteUserData Location UserEnvironment"
TARGET.EPOCHEAPSIZE = 0x020000 0x8000000
LIBS += -lcone \
-leikcore \
-lavkon
}
And this is the code on my QMainWindow class:
.....
m_location = QGeoPositionInfoSource::createDefaultSource(this);
connect(m_location, SIGNAL(positionUpdated(QGeoPositionInfo)),
this, SLOT(posicionActualizada(QGeoPositionInfo)));
connect(m_location,SIGNAL(requestTimeout()),this,SLOT(timeOutLocalizacion()));
if (m_location) {
m_location->startUpdates();
}
....
void MainWindow:

osicionActualizada(QGeoPositionInfo gpsPos)
{
QGeoCoordinate m_coordinate = gpsPos.coordinate();
if (m_coordinate.isValid()) {
this->locaUserLong.setNum(m_coordinate.longitude());
this->locaUserLat.setNum(m_coordinate.latitude());
m_location->stopUpdates();
QMessageBox::critical(this, "Posicion Actual: ",
"Logitud: "+this->locaUserLong+" ; Latitud: "+this->locaUserLat, QMessageBox::Ok);
}
}
On simulator, the QMessageBox appears showing location data, but on device the application doesn't show anything. Any idea??
Thanks in advance.
Regards.