Code example for Polyline

Methods: setPoints

0
			List<LatLng> points = new ArrayList<LatLng>(); 
			points.add(new LatLng(30.0, 30.0)); 
			double lat = 30.0 * Math.sin(diff); 
			double lng = -100.0 * Math.cos(diff); 
			points.add(new LatLng(30.0 + lat, 30.0 + lng)); 
			polyline.setPoints(points); 
 
			groundOverlay.setBearing(groundOverlay.getBearing() + 1.0f); 
 
			handler.postDelayed(this, 50); 
		} 
	}; 
 
	@Override 
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.shapes_example); 
 
		GoogleMap map = GoogleMapHelper.getMap(this, R.id.shapes_map);
 
		map.setOnMapClickListener(new OnMapClickListener() {