Sunday, March 25, 2018

[Android App Development] Re-load app after permission granted

@Override

public void onRequestPermissionsResult(int requestCode, @NonNull String[] 
permissions, @NonNull int[] grantResults) {
    Intent permiIntent=new Intent(this,MainActivity.class);
    finish();
    startActivity(permiIntent);
}


No comments:

Post a Comment