GetJedi/app/src/main/java/edu/getjedi/frontend/mobile/MainMapActivity.java
private boolean hasLocationAndInternetPermissions() {
        return ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED &&
                ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED &&
                ActivityCompat.checkSelfPermission(this, Manifest.permission.INTERNET) == PackageManager.PERMISSION_GRANTED;
    }
/**
     * Returns true if the user has granted this app all the required permissions for it's proper execution.
     */
Returns true if the user has granted this app all the required permissions for it's proper execution.
Returns true if the user has granted this app all the required permissions for it ' s proper execution .
private boolean hasLocationAndInternetPermissions() {
        return ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED &&
                ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED &&
                ActivityCompat.checkSelfPermission(this, Manifest.permission.INTERNET) == PackageManager.PERMISSION_GRANTED;
    }
private boolean hasLocationAndInternetPermissions ( ) { return ActivityCompat . checkSelfPermission ( this , Manifest . permission . ACCESS_FINE_LOCATION ) == PackageManager . PERMISSION_GRANTED && ActivityCompat . checkSelfPermission ( this , Manifest . permission . ACCESS_COARSE_LOCATION ) == PackageManager . PERMISSION_GRANTED && ActivityCompat . checkSelfPermission ( this , Manifest . permission . INTERNET ) == PackageManager . PERMISSION_GRANTED ; }
Returns true if the user has granted this app all the required permissions for it's proper execution.
Returns true if the user has granted this app all the required permissions for it ' s proper execution .