[Qt-mobility-feedback] Location Application on a N95 8G Nokia mobile
david.laing at nokia.com
david.laing at nokia.com
Wed Mar 31 12:17:28 CEST 2010
Hi,
It sounds like a problem with "capabilties", which are a security feature of the Symbian platform.
The short version is you should try adding
TARGET.CAPABILITY = Location
to your .pro file when working with Symbian / S60 phones and Location.
The longer version is that we had a problem with our documentation where we didn't mention which capabilities were needed for each module of Mobility. We've fixed that problem now but it will be a little while before the changed documentation sees the light of day.
The "required application access not granted" message is probably similar in nature.
For reference, here are the upper bounds on the capabilities needed, sorted by Mobility module.
The format is:
Module name - Capabilities required
Bearer Management - ReadUserData NetworkServices (NetworkControl for QNetworkSession::stop())
Contacts - ReadUserData WriteUserData SwEvent ReadDeviceData WriteDeviceData
Location - Location
Multimedia - UserEnvironment ReadUserData WriteUserData ReadDeviceData WriteDeviceData
Messaging - LocalServices ReadUserData WriteUserData NetworkServices UserEnvironment ReadDeviceData WriteDeviceData
Publish And Subscribe - ReadDeviceData WriteDeviceData
Service Framework - No capabilities requried by itself, the plugins may have capability requirements.
System Information - LocalServices ReadUserData WriteUserData NetworkServices UserEnvironment Location TrustedUI ReadDeviceData
So to set up a project to use Bearer Management, along with
CONFIG += mobility
MOBILITY += bearer
in your .pro file you should also add
TARGET.CAPABILITY = ReadUserData NetworkServices
If this doesn't work (or if you have any other troubles) please let me know.
Regards,
Dave
________________________________________
From: qt-mobility-feedback-bounces at trolltech.com [qt-mobility-feedback-bounces at trolltech.com] On Behalf Of ext Thierry GUYOT [thguyot at free.fr]
Sent: Wednesday, 31 March 2010 7:13 PM
To: qt-mobility-feedback at trolltech.com
Subject: [Qt-mobility-feedback] Location Application on a N95 8G Nokia mobile
Hello,
I am a french teacher in a high school of Nancy.
I've been using Qt (under Linux and Windows) for several years within my
course about programming with my students.
I'm now testing the new Qt Mobility API with a Nokia N95 8g mobile
phone. I'm working with the 4.6.2 version of Qt.
I've made a small application which is asking the phone about several of
its specifications (manufacturer, model, IMEI, power state, level of its
battery, etc.) and it works fine.
I want now to use the Location API and my first test application tries
to obtain the satellites detected by the GPS receiver.
The receiver is OK (all of the others standard location applications of
my phone are working very well) but my application doesn't "see" any
satellite : the QGeoSatelliteInfoSource::createDefaultSource() static
method allways return 0 !!
And when i want to test the
QGeoPositionInfoSource::createDefaultSource() static method, my
application crashes !!
I don't know where there is a problem...
I want also to indicate that I have problems when I want to install the
Qt Mobility examples provided : I can create the sis files with the
"createpackage" command, but my phone don't want to install them and
gives me the message :"required application access not granted".
I do not have this problem with standard Qt applications...
Thank you for your help which will be wery usefull...
Best regards
Thierry GUYOT
Informatics Professor
Lycée Charles de Foucauld
1, Rue Jeannot
54000 NANCY - FRANCE
_______________________________________________
Qt-mobility-feedback mailing list
Qt-mobility-feedback at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-mobility-feedback
More information about the Qt-mobility-feedback
mailing list