0
所以我正在尋找一個解決方案,並撞到the code from this answer on stackoverflow自定義信息窗口適配器和其他2個問題
在這裏,我得到錯誤:
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
代表。
任何幫助理解和解決我的問題將非常感激。感謝您的時間。
感謝您的建議,但我這樣做,是寫有現在,問題依然wasnt解決一切。 –