15,966,952 members
Home / Discussions / Android

# Android

 Re: Help Member 1302311826-Apr-17 3:38 Member 13023118 26-Apr-17 3:38
 Re: Help Richard MacCutchan26-Apr-17 21:07 Richard MacCutchan 26-Apr-17 21:07
 how can i open a rar file with password Member 1298133419-Apr-17 3:05 Member 12981334 19-Apr-17 3:05
 Re: how can i open a rar file with password Nick_314159265419-Apr-17 4:08 Nick_3141592654 19-Apr-17 4:08
 Re: how can i open a rar file with password CHill6019-Apr-17 4:10 CHill60 19-Apr-17 4:10
 Re: how can i open a rar file with password David Crow24-Apr-17 9:55 David Crow 24-Apr-17 9:55
 Trying to set Imageview with background operations Gizem Alpaydin18-Apr-17 6:09 Gizem Alpaydin 18-Apr-17 6:09
 I don't find the mistake I make User 1106097926-Mar-17 4:15 User 11060979 26-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 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.  c allways Shows me something very near PI, e.g. 3.14159145modified 19-Jan-21 21:04pm.
 Re: I don't find the mistake I make Richard MacCutchan26-Mar-17 7:00 Richard MacCutchan 26-Mar-17 7:00
 Re: I don't find the mistake I make User 1106097926-Mar-17 7:38 User 11060979 26-Mar-17 7:38
 Re: I don't find the mistake I make Richard MacCutchan26-Mar-17 7:40 Richard MacCutchan 26-Mar-17 7:40
 Re: I don't find the mistake I make User 1106097926-Mar-17 7:44 User 11060979 26-Mar-17 7:44
 Re: I don't find the mistake I make David Crow26-Mar-17 10:38 David Crow 26-Mar-17 10:38
 Re: I don't find the mistake I make User 1106097927-Mar-17 3:07 User 11060979 27-Mar-17 3:07
 Re: I don't find the mistake I make David Crow27-Mar-17 12:32 David Crow 27-Mar-17 12:32
 Re: I don't find the mistake I make Richard MacCutchan27-Mar-17 21:44 Richard MacCutchan 27-Mar-17 21:44
 Re: I don't find the mistake I make David Crow26-Mar-17 10:36 David Crow 26-Mar-17 10:36
 Re: I don't find the mistake I make David Crow26-Mar-17 10:34 David Crow 26-Mar-17 10:34
 Re: I don't find the mistake I make User 1106097927-Mar-17 3:36 User 11060979 27-Mar-17 3:36
 Re: I don't find the mistake I make David Crow27-Mar-17 12:34 David Crow 27-Mar-17 12:34
 Re: I don't find the mistake I make User 1106097927-Mar-17 21:43 User 11060979 27-Mar-17 21:43
 Android project Member 1307301022-Mar-17 18:16 Member 13073010 22-Mar-17 18:16
 Re: Android project Richard MacCutchan22-Mar-17 23:05 Richard MacCutchan 22-Mar-17 23:05
 on android E-health care project Member 1307301820-Mar-17 21:01 Member 13073018 20-Mar-17 21:01
 Re: on android E-health care project Nick_314159265413-Apr-17 11:25 Nick_3141592654 13-Apr-17 11:25
 Last Visit: 31-Dec-99 18:00     Last Update: 13-Aug-24 14:25 Refresh ᐊ Prev1...27282930313233343536 Next ᐅ

General    News    Suggestion    Question    Bug    Answer    Joke    Praise    Rant    Admin

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