When I want to use onRequestPermissionsResult()
in AsyncTask, I get an error. I must use permission in Android 6.0.
@Override
public void onRequestPermissionsResult(int permsRequestCode, String[] permissions, int[] grantResults){
switch(permsRequestCode){
case 200:
boolean writeAccepted = grantResults[0]== PackageManager.PERMISSION_GRANTED;
break;
}
}
Error message is ( @Override line ) :
method does not override method from its superclass
How can I catch onRequestPermissionsResult()
in AsycnTask ? I have activity but I can't this.