Click here to Skip to main content
15,867,756 members
Home / Discussions / Android
   

Android

 
GeneralRe: Help Pin
Member 1302311826-Apr-17 3:38
Member 1302311826-Apr-17 3:38 
GeneralRe: Help Pin
Richard MacCutchan26-Apr-17 21:07
mveRichard MacCutchan26-Apr-17 21:07 
Questionhow can i open a rar file with password Pin
Member 1298133419-Apr-17 3:05
Member 1298133419-Apr-17 3:05 
AnswerRe: how can i open a rar file with password Pin
Nick_314159265419-Apr-17 4:08
Nick_314159265419-Apr-17 4:08 
AnswerRe: how can i open a rar file with password Pin
CHill6019-Apr-17 4:10
mveCHill6019-Apr-17 4:10 
SuggestionRe: how can i open a rar file with password Pin
David Crow24-Apr-17 9:55
David Crow24-Apr-17 9:55 
QuestionTrying to set Imageview with background operations Pin
Gizem Alpaydin18-Apr-17 6:09
Gizem Alpaydin18-Apr-17 6:09 
QuestionI don't find the mistake I make Pin
User 1106097926-Mar-17 4:15
User 1106097926-Mar-17 4:15 
Having the coordinates from Android Sensor and try to calculate the distance in Excel according to:

http://andrew.hedges.name/experiments/haversine/

dlon = lon2 - lon1
dlat = lat2 - lat1
a = (sin(dlat/2))^2 + cos(lat1) * cos(lat2) * (sin(dlon/2))^2
c = 2 * atan2( sqrt(a), sqrt(1-a) )
d = R * c (where R is the radius of the Earth)

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:

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...

Where I could be wrong, any idea?

Thank you in advance.

N.B: I'm also not sure whether it is ok to use the sensor decimal values directly for trigonometric function, maybe this is the key Point.

[Edit]
c allways Shows me something very near PI, e.g. 3.14159145

modified 19-Jan-21 21:04pm.

AnswerRe: I don't find the mistake I make Pin
Richard MacCutchan26-Mar-17 7:00
mveRichard MacCutchan26-Mar-17 7:00 
GeneralRe: I don't find the mistake I make Pin
User 1106097926-Mar-17 7:38
User 1106097926-Mar-17 7:38 
GeneralRe: I don't find the mistake I make Pin
Richard MacCutchan26-Mar-17 7:40
mveRichard MacCutchan26-Mar-17 7:40 
GeneralRe: I don't find the mistake I make Pin
User 1106097926-Mar-17 7:44
User 1106097926-Mar-17 7:44 
GeneralRe: I don't find the mistake I make Pin
David Crow26-Mar-17 10:38
David Crow26-Mar-17 10:38 
GeneralRe: I don't find the mistake I make Pin
User 1106097927-Mar-17 3:07
User 1106097927-Mar-17 3:07 
QuestionRe: I don't find the mistake I make Pin
David Crow27-Mar-17 12:32
David Crow27-Mar-17 12:32 
GeneralRe: I don't find the mistake I make Pin
Richard MacCutchan27-Mar-17 21:44
mveRichard MacCutchan27-Mar-17 21:44 
SuggestionRe: I don't find the mistake I make Pin
David Crow26-Mar-17 10:36
David Crow26-Mar-17 10:36 
QuestionRe: I don't find the mistake I make Pin
David Crow26-Mar-17 10:34
David Crow26-Mar-17 10:34 
GeneralRe: I don't find the mistake I make Pin
User 1106097927-Mar-17 3:36
User 1106097927-Mar-17 3:36 
SuggestionRe: I don't find the mistake I make Pin
David Crow27-Mar-17 12:34
David Crow27-Mar-17 12:34 
GeneralRe: I don't find the mistake I make Pin
User 1106097927-Mar-17 21:43
User 1106097927-Mar-17 21:43 
QuestionAndroid project Pin
Member 1307301022-Mar-17 18:16
Member 1307301022-Mar-17 18:16 
GeneralRe: Android project Pin
Richard MacCutchan22-Mar-17 23:05
mveRichard MacCutchan22-Mar-17 23:05 
Questionon android E-health care project Pin
Member 1307301820-Mar-17 21:01
Member 1307301820-Mar-17 21:01 
QuestionRe: on android E-health care project Pin
Nick_314159265413-Apr-17 11:25
Nick_314159265413-Apr-17 11:25 

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.