Created
September 10, 2015 09:30
-
-
Save olcayertas/148612ed515612340078 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int pAccessFineLocation = | |
ContextCompat.checkSelfPermission( | |
context, Manifest.permission.ACCESS_FINE_LOCATION); | |
int pAccessCoarseLocation = | |
ContextCompat.checkSelfPermission( | |
context, Manifest.permission.ACCESS_COARSE_LOCATION); | |
if (pAccessFineLocation == PackageManager.PERMISSION_GRANTED | |
&& pAccessCoarseLocation == PackageManager.PERMISSION_GRANTED) { | |
//Yay! We have permission! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment