Do all four of your distance methods return the same result of
something like 620, 4040104102 etc.
Nope it returns different numbers: eg. loc2.distanceTo(loc1) returns 42900.082
Could you please post the values of both Location objects' latitude and longitude? Perhaps I, or someone else here, could help you out some more if you need it.
double lat1 = curLocation.getLatitude(); // eg. 20.949828028678894
double long1 = curLocation.getLongitude(); // eg. 52.28138744831085
double lat2 =20.9499192237854;
double long2 =52.26164494037628;
and try to invert lat on longitude maybe a mistake.
if accuracy is high it's possible it's have some trouble
loc1.getaccuracy() // eg.16 or 24 ..
loc2.getaccuracy() // eg.16 or 24 ..
I dont know, maybe problem is with creating 1 of the locations, I get the coordinates from other program and i need to make object Location with those coords- is this code ok ?
Using java Syntax Highlighting
Location loc2 = new Location("WHAT TO WRITE HERE ?!?!");
Parsed in 0.036 seconds, using GeSHi