Hi i am updating my application jaffna Temples . so that it can support Android M devices (v 6.0 and above).
Is there a way i can request multiple permission at a singl
Is there a way i can request multiple permission at a single time
Put more than one permission in the String[]
that you are passing to requestPermissions()
.
For example, in this sample project, I define collections of permissions statically, such as:
private static final String[] PERMS_TAKE_PICTURE={
CAMERA,
WRITE_EXTERNAL_STORAGE
};
so that I can request those permissions later:
ActivityCompat.requestPermissions(this, PERMS_TAKE_PICTURE,
RESULT_PERMS_INITIAL);