Advanced provider provider behavior in Android 5.0 unexpected

I am trying to use Android paywall provider to get device location every 30 minutes using PRIORITY_HIGH_ACCURACY . For me, amazing is that

When GPS is off, I expect the API to use the network provider and sensors to give me a location with a little poor accuracy. However, the location returned by the API in this case is null for Android 5.0 .

In Android 4.0, this behavior is different from others, it gives me a location with a little bad accuracy as expected. I can't find any documentation on this! Any thoughts??

EDIT: Just realized that Android 5.0 device does not have a SIM, does that mean if there is no SIM, the smooth location provider will not consider WiFi to find the best location?

+3


source to share





All Articles