Android getbearing only returns 0.0. Trying to use to rotate current location icon

后端 未结 2 780
灰色年华
灰色年华 2021-01-07 13:32

This is in part an extension to a previous question: Android programming, mapview locationoverlay: how to change the default blue location dot, with another image

I

2条回答
  •  鱼传尺愫
    2021-01-07 13:42

    What is location provider? If it NETWORK_PROVIDER, then you won't get bearing, because its accuracy is to low, to detect bearing.

    Try your app outside and with GPS_PROVIDER?

提交回复
热议问题