Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ...
- //request location after acquiring the Location Permission.
- locationHelper.requestLocationUpdate(new LocationHelper.LocationHelperListener() {
- @Override
- public void onLocationIdentified(Location location) {
- //Do whatever you want with this location.
- String builder = "Latitude : " + location.getLatitude() +
- "\nLongitude : " + location.getLongitude();
- locationInfoText.setText(builder);
- }
- });
- //Stop location updates.
- locationHelper.stopLocationUpdates();
Add Comment
Please, Sign In to add comment