I have a code which sends location of user 1 to user 2 and user 2\'s location to user 1 . The location of user 1 is send perfectly to user 2 and user 2 is even sending a me
Well one problem you have is at line 102:
String msg = Double.toString(latitude) + " " +Double.toString(longitude) ;
You haven't updated latitude and longitude to reflect your current position. Add this code right before that line:
latitude = location.getLatitude();
longitude = location.getLongitude();
See what happens once that is fixed.