I need to create a Location object from some latitude and longitude values, without going through a location provider. I do the following:
Location l = new Location("");
l.setLatitude(32);
l.setLongitude(43);
The values, however, are not set properly, since both getLatitude()
and getLongitude()
return 0.
Can you please tell me where is the problem? Isn't this the correct way to create a "custom" Location?