Is there a mistake in code snippet #7 of the Map View tutorial, Part 2
(Adding Overlay Items)?

http://developer.android.com/resources/tutorials/views/hello-mapview.html

The comment below the snippet seems to indicate that the author
intended to call the default constructor instead of the base class'
constructor. If that's the case, the current snippet

public HelloItemizedOverlay(Drawable defaultMarker, Context context) {
  super(defaultMarker);
  mContext = context;
}

should be changed to

public HelloItemizedOverlay(Drawable defaultMarker, Context context) {
  this(defaultMarker);
  mContext = context;
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to