【发布时间】:2013-08-07 10:55:16
【问题描述】:
所以我在寻找解决方案时遇到了the code from this answer on stackoverflow
我在这里遇到错误:
googleMap.setInfoWindowAdapter(new CustomInfoWindowAdapter(
GPSTracker.this)); 表示无法解析为类型。
Share 也无法解析为变量
private void GetCurrentLocation() {
double[] d = getlocation();
Share.lat = d[0];
Share.lng = d[1];
googleMap.addMarker(new MarkerOptions().position(new LatLng(Share.lat, Share.lng)).title("Current Location").icon(BitmapDescriptorFactory.fromResource(R.drawable.red)));
我无法为CustomInfoWindowAdapter 找到任何解决方案,而且我不明白Share 代表什么。
对于理解和解决我的问题的任何帮助将不胜感激。感谢您的宝贵时间。
【问题讨论】:
标签: android google-maps