daily pastebin goal
40%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. LocationManager locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);
  2. {
  3.     if(!locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER ))
  4.     {
  5.         Intent myIntent = new Intent( Settings.ACTION_LOCATION_SOURCE_SETTINGS );
  6.         startActivity(myIntent);
  7.     }
  8. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top