ActivityCompat.requestPermissions not showing dialog box

前端 未结 20 1460
野趣味
野趣味 2020-12-07 17:15
if (ContextCompat.checkSelfPermission(RegisterActivity.this,      Manifest.permission.READ_PHONE_STATE) == PackageManager.PERMISSION_DENIED){
            ActivityCom         


        
20条回答
  •  既然无缘
    2020-12-07 17:58

    I came across this problem in Samsung S8 and N8 (havent found in any other)

    so the problem is in the manifest file uses-permission

    
    

    For some reason, the attribute android:requiredFeature is the culprit. and I haven't found the explanation on why.

    to solve simply remove it,

    
    

提交回复
热议问题