If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

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

BlackBerry® PlayBook™

Reply
Super Contributor
lyon819
Posts: 253
Registered: ‎08-19-2010
My Device: BB10, Playbook, 9900, 9800, 9700, 9550, 9530, 9500, 8700.
My Carrier: TT

How to get gps and acceleration in a application??

Situation:

I only can get acceleration or gps seperately.

Purpose:

Get both acceleration and gps in an application.

Question:

Does anyone know how to get the both accelerations and gps data??

 

My code:

if (bps_event_get_domain(event) == sensor_get_domain()) {

            handle_acceleration_response(event);
}else if (bps_event_get_domain(event) == geolocation_get_domain()) {
            handle_geolocation_response(event);

 

Thank your attention.

 

 

-Fight with BB10
Please use plain text.
Contributor
prabodpai
Posts: 25
Registered: ‎07-27-2012
My Device: dont have
My Carrier: airtel

Re: How to get gps and acceleration in a application??

webworks or native app development?

Please use plain text.
Super Contributor
lyon819
Posts: 253
Registered: ‎08-19-2010
My Device: BB10, Playbook, 9900, 9800, 9700, 9550, 9530, 9500, 8700.
My Carrier: TT

Re: How to get gps and acceleration in a application??

Native sdk.

 

Thx

-Fight with BB10
Please use plain text.