Marshmallow Permissions not working for TargetVersion below 23

前端 未结 3 1378
梦毁少年i
梦毁少年i 2021-01-17 21:20

My project is a long running project. I had set the target version as 10, 4 years back. I cant change the target version to 23, since I am using httpImageCache and also havi

3条回答
  •  既然无缘
    2021-01-17 22:20

    use PermissionChecker.checkSelfPermission()

    when targetSdkVersion <= 22,you also can use requestPermission()

提交回复
热议问题