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

Java Development

Reply
Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

How to get the accurate direction of the device?

Hey

I am using Magnetometer for getting the direction of the device.

 

But i am getting the wrong direction. If i am pointing my application at some direction say North then after sometime if i point the device in the same directon it shows some other direction.

 

How to get the accurate direction of the device???

Developer
Posts: 19,623
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to get the accurate direction of the device?

Can you post a self contained example of the code you are using?

Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Re: How to get the accurate direction of the device?

Sir

Please run this sample.

https://github.com/blackberry/JDE-Samples/blob/master/com/rim/samples/device/magnetometerdemo/Magnet...

 

Will you get the different direction at the same point or not.

Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Re: How to get the accurate direction of the device?

Hey is there any other way to get the accurate direction of the device??

 

Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Re: How to get the accurate direction of the device?

How to get the accurate direction ?????

Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Re: How to get the accurate direction of the device?

Any reply please?

BlackBerry Development Advisor
Posts: 15,083
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: How to get the accurate direction of the device?

What behaviour do you see when you run the sample application on that device?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Re: How to get the accurate direction of the device?

Hey

Thanks for the reply.

 

Actually i am using Magnetometer to get the direction whenever i move my device in any direction.

If at one point i am getting North North West, then after sometime if i point in the same direction i am getting some other direction say South South East.

 

So i want to get accurate direction.

Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Re: How to get the accurate direction of the device?

Is dere any other way to get the correct direction????

Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Re: How to get the accurate direction of the device?

Hey

 

How to get the accurate direction.

Can anyone tell me???

I am having Blackberry 9790