Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 235
Registered: ‎12-13-2011
My Device: Curve 9380
My Carrier: Vodafone-IN
Accepted Solution

Facing problem to collect geo location

Hi,

 

I am trying to collect geo location using QGeopositionInfoSource, But I am getting an error "LocationManagerUtil.cpp:sendRequest(): error opening pps object, errno = 13 ( Permission denied ). Clients should verify that they have access_location_services permission. " . The code I have used is shown below 

QGeoPositionInfoSource* geoPositionSource =	QGeoPositionInfoSource::createDefaultSource(this);
	geoPositionSource->setPreferredPositioningMethods(QtMobilitySubset::QGeoPositionInfoSource::AllPositioningMethods);
	if(geoPositionSource)
	{

		connect(geoPositionSource,SIGNAL(positionUpdated(QGeoPositionInfo)),this,SLOT(positionUpdated(QGeoPositionInfo)));
		geoPositionSource->requestUpdate();
		
	}

 Thanks

Deepu George Jacob

Developer
Posts: 235
Registered: ‎12-13-2011
My Device: Curve 9380
My Carrier: Vodafone-IN

Re: Facing problem to collect geo location

Sorry for all, 

 

I forgot to add permission in bar-descripter file.

 

Thankyou :smileyhappy: