Android Studio - remove Security Exception warning
问题 I'm getting the user's location through Location location = LocationServices.FusedLocationApi.getLastLocation( mGoogleApiClient); This line of code is inside a method and before calling this method I do check for Android run time permissions. Only if the permission is available from the user then I call this method. Code is working perfectly. The problem is that Android Studio still shows an error on this line not recognising that I've already checked before calling this function. Call