You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 26, 2019. It is now read-only.
你好,MIUI8.0 一直提示打开读写权限,但是我的读写权限已经打开了,测试的其他小米手机么有问题,其他的8.0系统手机也没有问题
Permissions4M.get(UpdateDialogActivity.this)
// 是否强制弹出权限申请对话框,建议为 true,默认为 true
// .requestForce(true)
// 是否支持 5.0 权限申请,默认为 false
// .requestUnderM(false)
// 权限
.requestPermissions(Manifest.permission.WRITE_EXTERNAL_STORAGE)
// 权限码
.requestCodes(EXTERNAL_STORAGE_REQ_CODE)
// 权限请求结果
.requestListener(new Wrapper.PermissionRequestListener() {
@OverRide
public void permissionGranted(int code) {
// ToastUtils.showToast(UpdateDialogActivity.this, "读取外部存储权限成功");
startDownLoad();
}
// .requestPageType(Permissions4M.PageType.ANDROID_SETTING_PAGE)
// 权限完全被禁时回调,接口函数中的参数 Intent 是由上一行决定的
.requestPage(new Wrapper.PermissionPageListener() {
The text was updated successfully, but these errors were encountered: