0

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.

Community
  • 1
  • 1
Luch Filip
  • 1,103
  • 3
  • 13
  • 13

1 Answers1

1

This may help you

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

custom info window adapter with custom data in map v2

Community
  • 1
  • 1
Hybrid Developer
  • 2,320
  • 1
  • 34
  • 55
  • Thanks for your suggestion, but I did everything that is written there now, the problem still wasnt solved. – Luch Filip Aug 07 '13 at 11:22