Android check permission for LocationManager

后端 未结 6 821
我寻月下人不归
我寻月下人不归 2020-11-28 01:35

I\'m trying to get the GPS coordinates to display when I click a button in my activity layout. The following is the method that gets called when I click the button:

6条回答
  •  旧时难觅i
    2020-11-28 01:57

    if you are working on dynamic permissions and any permission like ACCESS_FINE_LOCATION,ACCESS_COARSE_LOCATION giving error "cannot resolve method PERMISSION_NAME" in this case write you code with permission name and then rebuild your project this will regenerate the manifest(Manifest.permission) file.

提交回复
热议问题