Made the same mistake when I started. The Location API is giving you a reference to an internal object. You need to make a new one to store the values:
loc1 = new QualifiedCoordinates(currentLocation.getQualifiedC oordinates().getLatitude(), ...);
Tedious but it works. If someone has a better way I would like to see it as well. |