Android sensor how to get the accuracy at anytime?
up vote
0
down vote
favorite
I know the onAccuracyChanged(Sensor sensor, int accuracy) callback, but it only happens when there's a change. How do I get the accuracy at anytime?
In Google Map, if you click on a POI where you're currently at, there's an option for you to Calibrate Compass, and in that screen they show you the current accuracy level.
In order words, after I calibrate my compass with figure 8, how do I check if my accuracy level indeed increases? I need a way something like sensor.getAccuracy() but I can't find that method.
android sensor compass
add a comment |
up vote
0
down vote
favorite
I know the onAccuracyChanged(Sensor sensor, int accuracy) callback, but it only happens when there's a change. How do I get the accuracy at anytime?
In Google Map, if you click on a POI where you're currently at, there's an option for you to Calibrate Compass, and in that screen they show you the current accuracy level.
In order words, after I calibrate my compass with figure 8, how do I check if my accuracy level indeed increases? I need a way something like sensor.getAccuracy() but I can't find that method.
android sensor compass
I don't think there is anything like that. You'll probably have to just listen to the onAccuracyChanged callback and keep track of that value yourself.
– Sub 6 Resources
Nov 21 at 18:58
I thought of that. I have to keep track of it myself. But I'd like them to add something so I can just get it on init, or on the fly.
– Caten
Nov 21 at 19:22
Yes, that would be nice.
– Sub 6 Resources
Nov 21 at 19:26
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I know the onAccuracyChanged(Sensor sensor, int accuracy) callback, but it only happens when there's a change. How do I get the accuracy at anytime?
In Google Map, if you click on a POI where you're currently at, there's an option for you to Calibrate Compass, and in that screen they show you the current accuracy level.
In order words, after I calibrate my compass with figure 8, how do I check if my accuracy level indeed increases? I need a way something like sensor.getAccuracy() but I can't find that method.
android sensor compass
I know the onAccuracyChanged(Sensor sensor, int accuracy) callback, but it only happens when there's a change. How do I get the accuracy at anytime?
In Google Map, if you click on a POI where you're currently at, there's an option for you to Calibrate Compass, and in that screen they show you the current accuracy level.
In order words, after I calibrate my compass with figure 8, how do I check if my accuracy level indeed increases? I need a way something like sensor.getAccuracy() but I can't find that method.
android sensor compass
android sensor compass
asked Nov 21 at 18:41
Caten
64311
64311
I don't think there is anything like that. You'll probably have to just listen to the onAccuracyChanged callback and keep track of that value yourself.
– Sub 6 Resources
Nov 21 at 18:58
I thought of that. I have to keep track of it myself. But I'd like them to add something so I can just get it on init, or on the fly.
– Caten
Nov 21 at 19:22
Yes, that would be nice.
– Sub 6 Resources
Nov 21 at 19:26
add a comment |
I don't think there is anything like that. You'll probably have to just listen to the onAccuracyChanged callback and keep track of that value yourself.
– Sub 6 Resources
Nov 21 at 18:58
I thought of that. I have to keep track of it myself. But I'd like them to add something so I can just get it on init, or on the fly.
– Caten
Nov 21 at 19:22
Yes, that would be nice.
– Sub 6 Resources
Nov 21 at 19:26
I don't think there is anything like that. You'll probably have to just listen to the onAccuracyChanged callback and keep track of that value yourself.
– Sub 6 Resources
Nov 21 at 18:58
I don't think there is anything like that. You'll probably have to just listen to the onAccuracyChanged callback and keep track of that value yourself.
– Sub 6 Resources
Nov 21 at 18:58
I thought of that. I have to keep track of it myself. But I'd like them to add something so I can just get it on init, or on the fly.
– Caten
Nov 21 at 19:22
I thought of that. I have to keep track of it myself. But I'd like them to add something so I can just get it on init, or on the fly.
– Caten
Nov 21 at 19:22
Yes, that would be nice.
– Sub 6 Resources
Nov 21 at 19:26
Yes, that would be nice.
– Sub 6 Resources
Nov 21 at 19:26
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53418627%2fandroid-sensor-how-to-get-the-accuracy-at-anytime%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I don't think there is anything like that. You'll probably have to just listen to the onAccuracyChanged callback and keep track of that value yourself.
– Sub 6 Resources
Nov 21 at 18:58
I thought of that. I have to keep track of it myself. But I'd like them to add something so I can just get it on init, or on the fly.
– Caten
Nov 21 at 19:22
Yes, that would be nice.
– Sub 6 Resources
Nov 21 at 19:26