onRequestPermissionsResult returns immediately with denied permission

前端 未结 2 2025
故里飘歌
故里飘歌 2021-01-18 04:24

My Android app needs to request permission for location services. I do this with:

ActivityCompat.requestPermissions(this, new String[]{
                              


        
2条回答
  •  悲哀的现实
    2021-01-18 04:27

    Change:

    
    

    to:

    
    

    The permission is for "coarse" location data (i.e., not fine-grained), not "course" location data (e.g., where some university class is being held).

提交回复
热议问题