Y
Y
ywitodenasuby2019-08-26 12:35:22
Android
ywitodenasuby, 2019-08-26 12:35:22

Where to check ACCESS_FINE_LOCATION permission?

There is SplashScreenActivity->MainActivity->SettingsActivity. On the SettingsActivity page, I enable a service that periodically receives GPS coordinates. Where is the best place to request permission to access GPS.

"gps" location provider requires ACCESS_FINE_LOCATION permission

I read that you need to check the rights before each call to the GPS. It turns out in the service?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tiroman, 2019-08-26
@tiroman

since the user can disable the permission for the application at any time, it is logical to check before using the desired function, every time, and where you use it there you know better

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question