Click here to Skip to main content
15,126,367 members
Home / Discussions / Android
   

Android

 
GeneralRe: I don't find the mistake I make Pin
Richard MacCutchan26-Mar-17 8:40
mveRichard MacCutchan26-Mar-17 8:40 
GeneralRe: I don't find the mistake I make Pin
User 1106097926-Mar-17 8:44
MemberUser 1106097926-Mar-17 8:44 
GeneralRe: I don't find the mistake I make Pin
David Crow26-Mar-17 11:38
MemberDavid Crow26-Mar-17 11:38 
GeneralRe: I don't find the mistake I make Pin
User 1106097927-Mar-17 4:07
MemberUser 1106097927-Mar-17 4:07 
QuestionRe: I don't find the mistake I make Pin
David Crow27-Mar-17 13:32
MemberDavid Crow27-Mar-17 13:32 
GeneralRe: I don't find the mistake I make Pin
Richard MacCutchan27-Mar-17 22:44
mveRichard MacCutchan27-Mar-17 22:44 
SuggestionRe: I don't find the mistake I make Pin
David Crow26-Mar-17 11:36
MemberDavid Crow26-Mar-17 11:36 
QuestionRe: I don't find the mistake I make Pin
David Crow26-Mar-17 11:34
MemberDavid Crow26-Mar-17 11:34 
0x01AA wrote:
Having the coordinates from Android Sensor...
What coordinates?

0x01AA wrote:
...and try to calculate the distance...
From/to what?

0x01AA wrote:

Enter my two Locations in the calculator (link above) shows me the right result, it is about 6m.

When I calculate it by Excel I get 20Km instead of 6 meters Laugh | :laugh:
So then there's a difference between the two formulas. Since you've only shown one, how could anyone possibly guess as to what is wrong?

0x01AA wrote:

I'm strongly assuming that I mix up rad vs. degree but I do not find where I'm wrong.

Excel trigonometric functions expect everything in rad so I adjust lon1, lon2, lat1, lat2 first into rad...
It's either degrees or radians. If you've tried both and neither produce the correct result, then that's not the (only) problem.

0x01AA wrote:

N.B: I'm also not sure whether it is ok to use the sensor decimal values directly for trigonometric function...
Are they expecting floating-point values? If so, then you must use the "decimal values."

All of this aside, where's the Android issue?

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles


GeneralRe: I don't find the mistake I make Pin
User 1106097927-Mar-17 4:36
MemberUser 1106097927-Mar-17 4:36 
SuggestionRe: I don't find the mistake I make Pin
David Crow27-Mar-17 13:34
MemberDavid Crow27-Mar-17 13:34 
GeneralRe: I don't find the mistake I make Pin
User 1106097927-Mar-17 22:43
MemberUser 1106097927-Mar-17 22:43 
QuestionAndroid project Pin
Member 1307301022-Mar-17 19:16
MemberMember 1307301022-Mar-17 19:16 
GeneralRe: Android project Pin
Richard MacCutchan23-Mar-17 0:05
mveRichard MacCutchan23-Mar-17 0:05 
Questionon android E-health care project Pin
Member 1307301820-Mar-17 22:01
MemberMember 1307301820-Mar-17 22:01 
QuestionRe: on android E-health care project Pin
Nick_314159265413-Apr-17 12:25
MemberNick_314159265413-Apr-17 12:25 
QuestionHow to port my HTML5 Websocket site to cordova app? Pin
TonyManso23-Feb-17 18:01
professionalTonyManso23-Feb-17 18:01 
QuestionMethod not returning expected value Pin
Davidw196923-Feb-17 4:13
MemberDavidw196923-Feb-17 4:13 
AnswerRe: Method not returning expected value Pin
Eddy Vluggen23-Feb-17 4:35
professionalEddy Vluggen23-Feb-17 4:35 
GeneralRe: Method not returning expected value Pin
Davidw196924-Feb-17 17:41
MemberDavidw196924-Feb-17 17:41 
AnswerRe: Method not returning expected value Pin
Jochen Arndt23-Feb-17 4:45
professionalJochen Arndt23-Feb-17 4:45 
GeneralRe: Method not returning expected value Pin
Richard MacCutchan23-Feb-17 6:45
mveRichard MacCutchan23-Feb-17 6:45 
AnswerRe: Method not returning expected value Pin
Davidw196924-Feb-17 17:52
MemberDavidw196924-Feb-17 17:52 
AnswerRe: Method not returning expected value Pin
Richard MacCutchan23-Feb-17 4:58
mveRichard MacCutchan23-Feb-17 4:58 
GeneralRe: Method not returning expected value Pin
Davidw196924-Feb-17 17:53
MemberDavidw196924-Feb-17 17:53 
QuestionAndroid and C# Web Services Pin
Member 1155786814-Feb-17 23:41
MemberMember 1155786814-Feb-17 23:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.