So i was searching for a solution and bumped into the code from this answer on stackoverflow
I am getting error here:
googleMap.setInfoWindowAdapter(new CustomInfoWindowAdapter(
GPSTracker.this));
saying that cannot be resolved to a type.
also Share
cannot be resolved to a variable
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)));
I couldn't get any solution for CustomInfoWindowAdapter
and i do not understand what does Share
stands for.
Any help in understanding and solving my issue would be very much appreciated. Thank you for your time.