You are getting the values using different objects
LatLngModel model = new LatLngModel(latitude,longtitude);
model.setLatitude(latitude);
model.setLongitude(longtitude);
Consider the above as Object A
LatLngModel model = new
LatLngModel(latitude,longtitude);
Before acessing , you should make sure that you are using the same object, Using new
will create another object
UPDATE
Simplest but singleton solution
private LatLngModel instance;
public static LatLngModel GetInstance()
{
if(instance == null)
instance = new LatLngModel();
return instance;
}
Then call
LatLngModel.getInstance();
to get the same object from any class .
NOTE
Dont call new for this class