I have the following code
AndroidPermissions.check(this)
.permissions(android.Manifest.permission.ACCESS_FINE_LOCATION)
.hasPermissions(permissions -> {
})
.noPermissions(permissions1 -> {
ActivityCompat.requestPermissions(SplashActivity.this
, new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION}
, REQUEST_CODE_ASK_PERMISSIONS);
})
.check();
and
switch (requestCode) {
case REQUEST_CODE_ASK_PERMISSIONS:
// If request is cancelled, the result arrays are empty.
if (grantResults.length > 0
&& grantResults[0] == PackageManager.PERMISSION_GRANTED) {
I have the following code AndroidPermissions.check(this) .permissions(android.Manifest.permission.ACCESS_FINE_LOCATION) .hasPermissions(permissions -> { }) .noPermissions(permissions1 -> { ActivityCompat.requestPermissions(SplashActivity.this , new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION} , REQUEST_CODE_ASK_PERMISSIONS); }) .check();
and switch (requestCode) { case REQUEST_CODE_ASK_PERMISSIONS: // If request is cancelled, the result arrays are empty. if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
My issue is that it doesn't enable the location on the device and I get lat/lng showing 0.000000. Till i manually turn on location. Please advise