📅  最后修改于: 2022-03-11 14:56:54.855000             🧑  作者: Mango
if (ContextCompat.CheckSelfPermission(this, Manifest.Permission.WriteExternalStorage) == (int)Permission.Granted)
{
// We have permission.
}
else
{
// Storage permission is not granted. If necessary display rationale & request.
}