I want to pass an arraylist of values from mapactivity to the overlay class:
MyOverlay dataOverlay = new MyOverlay(loc);
In the overlay class a constructor is created:
public class MyOverlay {
public MyOverlay(List<Double> loc) {
// TODO Auto-generated constructor stub
GeoPoint point = new GeoPoint((int)(location.get(1)*1E6) , (int)(location.get(0)*1E6));
}
public void draw(Canvas canvas, MapView mapView, boolean shadow, GeoPoint mp){
super.draw(canvas, mapView, shadow, mp);
}
}
From this loc arraylist I want to draw one point and mnay polylines from the rest of the values. This geopoint cannot pass to the draw class.
What is the next step after passing and how can I access this loc in the draw method?