Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. if (localManager.isGoogleApiClientConnected() || localManager.isGoogleApiClientConnecting()) {
  2. if (localManager.isLocationAvailable()) {
  3. if (!localManager.isLocationUpdateStart()) {
  4. localManager.startLocationUpdate();
  5. }
  6. } else {
  7. localManager.setLocationUpdateStart(false);
  8. Toast.makeText(getApplicationContext(), "Location not available", Toast.LENGTH_LONG).show();
  9. }
  10. } else {
  11. localManager.build();
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement