10-14-2012 04:15 AM
trying to get current location from an Qt (not cascades) app but when calling QGeoPositionInfoSource::createDefaultSource(this), it returns null pointer
<permission>access_location_services</permission> is set
how to solve the issue?
10-16-2012 04:24 PM
To use QGeoPositionInfoSource you must set the read_geolocation permission in your bar-descriptor.xml file. Though it's also a good idea to set the access_location_services permission, as you have done, since its impact may vary with beta NDK releases. You can alternatively enable Location Services under Settings on your device.
10-18-2012 02:57 PM - edited 10-18-2012 02:59 PM
On what's running this code ? PlayBokook or Dev Alpha ?
actually try this QGeoPositionInfoSource *source = QGeoPositionInfoSource::createDefaultSource(0);
10-18-2012 03:04 PM
QGeoPositionInfoSource *source = QGeoPositionInfoSource::createDefaultSource(0);
did not help too
10-18-2012 03:17 PM
10-18-2012 03:30 PM
locationdiagnostic sample works. at least I've got a pointer
I'm afraid this works only for cascades apps, ie apps, initialized with Cascades Application() class