Is Fused Location Provider good choice?

Atenica picture Atenica · Jun 28, 2016 · Viewed 22.2k times · Source

I am developing an application where I want to use Fused Location Provider. But I have some doubts, and couple of questions.

  1. When GPS is off and I set priority to HIGH, does that mean that the GPS will be automatically turned on, or not?
  2. Can I set UpdateLocation with Fused provider with HIGH priority on demand to save battery at least a little bit?
  3. How can I know what Fused provider is using (is it a GPS or a network provider)? And finally
  4. Is Fused provider really the best choice for android location? Are there any negative points about it?

What is your opinion? Thanks in advance.

Answer

blackkara picture blackkara · Jun 28, 2016

When GPS is off and I set priority to HIGH, does that mean that GPS will be automatically turned on, or not?

No, it will not be turned on automatically. But if you use SettingsApi, will prompt a dialog to user and gives information that GPS is must be turned on. If user accepts it, the gps will be active automatically. Check the SettingsApi

How can I know what Fused provider is using (is it a GPS or a network provider)

If you use fused provider api with SettingsApi properly. It will make adequate the required settings for current location request.

Is Fused provider really the best choice for android location? Are there any negative points about it?

In my opinion, before fused provider you must deal with directly providers(Gps, network) But fused just asks you, "how accurate locations you wanna receive ?"