Guest User

Untitled

a guest
Nov 23rd, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. ...
  2. //request location after acquiring the Location Permission.
  3. locationHelper.requestLocationUpdate(new LocationHelper.LocationHelperListener() {
  4. @Override
  5. public void onLocationIdentified(Location location) {
  6. //Do whatever you want with this location.
  7. String builder = "Latitude : " + location.getLatitude() +
  8. "\nLongitude : " + location.getLongitude();
  9. locationInfoText.setText(builder);
  10. }
  11. });
  12.  
  13. //Stop location updates.
  14. locationHelper.stopLocationUpdates();
Add Comment
Please, Sign In to add comment