Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LocationManager locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);
- {
- if(!locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER ))
- {
- Intent myIntent = new Intent( Settings.ACTION_LOCATION_SOURCE_SETTINGS );
- startActivity(myIntent);
- }
- }
Add Comment
Please, Sign In to add comment