Get Current Location 0 in marshmallow where below 23 API its give exact current Location using fused Location

前端 未结 4 1186
一向
一向 2020-12-03 08:08

I got current Location in Below 23 devices but getting (0.0,0.0) latitude and Longitude in 23 emulator device.

EDIT Currently I am using Fu

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-03 08:29

    It maybe help you to known that.

    I found that the Network provider not working in some android devices When you disable GPS because they're prevent access location data if GPS not enabled.

    I've tried that on many devices 1. lenove k6 note (screen shot1 , screen shot2) 2. Xiomai mi 9t screen shot1 3. Google Pixel 1 & Pixel 2

    so some devices need GPS enabled to access location from LocationManager.NETWORK_PROVIDER and you can't get location data without enable GPS

提交回复
热议问题