如何从后台服务android更新谷歌地图v2位置

use*_*312 6 service maps android location

我有一个实现LocationListener的后台服务,并将定期提供位置更新.我想然后使用这些位置更新来更新主活动中地图上的用户位置.我能够通过意图将纬度经度数据传递给主要活动,但我不知道如何使用该数据来显示用户的位置.

gyo*_*oda 1

查看此链接:

https://developers.google.com/maps/documentation/android/

具体是这些行

LatLng sydney = new LatLng(-33.867, 151.206);

map.setMyLocationEnabled(true);
map.moveCamera(CameraUpdateFactory.newLatLngZoom(sydney, 13));
Run Code Online (Sandbox Code Playgroud)