Skip to content

This class can generate UTM, MGRS values and can listen on location changes for ease of use.

Notifications You must be signed in to change notification settings

aungk000/LocationService

Repository files navigation

LocationService

This class can generate UTM, MGRS values and can listen on location changes for ease of use.

Example

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_location);
    
    locationService = new LocationService(this, requestCode, LocationService.OnLocationChangedListener);
}

@Override
protected void onStop() {
    super.onStop();

    locationService.stop();
}

@OnClick(R.id.btn_request_location)
public void onViewClicked() 
{
    locationService.requestLocation();
}

@Override
public void onLocationChanged(Location location, String utm, String mgrs)
{
    // Update UI here
}

Screenshot

Screenshot-1 Screenshot-2 Screenshot-3

About

This class can generate UTM, MGRS values and can listen on location changes for ease of use.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages