Add a fancy wrapper method to handle the nasty namespacing

master
DjBushido 2014-04-08 19:52:04 -04:00
parent 6d6c369e2c
commit ba882dfa8f
1 changed files with 5 additions and 1 deletions

View File

@ -39,10 +39,14 @@ public class Location {
this.locationLat = locationLat;
}
public android.location.Location getAndroidLocation() {
private android.location.Location getAndroidLocation() {
android.location.Location mLocation = new android.location.Location("NinerFinderServer");
mLocation.setLatitude(getLocationLat());
mLocation.setLongitude(getLocationLong());
return mLocation;
}
public float bearingTo(Location target) {
return getAndroidLocation().bearingTo(target.getAndroidLocation());
}
}