1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Android Question which to use Fine or Coarse?

Discussion in 'Android Questions' started by Scantech, Jul 30, 2019.

  1. Scantech

    Scantech Well-Known Member Licensed User

    I have an app which uses Bluetooth and requires PERMISSION_ACCESS_COARSE_LOCATION and GPS requires PERMISSION_ACCESS_FINE_LOCATION.

    Do i have to request both permissions? Or can i use PERMISSION_ACCESS_FINE_LOCATION for both of them?

    What is the difference between both of them? Is FINE more accurate in GPS??
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    GPS requires FINE permission so you must request it.

    When the FINE permission is granted it automatically also grants the COARSE permission. Note that nothing bad will happen if you request the COARSE permission after requesting the FINE permission. The dialog will not appear and the permission will be granted.
     
    Scantech likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice