Code example for PolygonOptions

		Polyline polyline = mMap.addPolyline(rectOptions);
	private void setPolygon() { 
		PolygonOptions rectOptions = new PolygonOptions()
				.add(new LatLng(28.6851, 116.0237))
				.add(new LatLng(28.6747, 116.0249))
				// North of the previous point, but at the same longitude 
				.add(new LatLng(28.6731, 116.0385))
				// Same latitude, and 30km to the west 
				.add(new LatLng(28.6840, 116.0378))
				.add(new LatLng(28.6851, 116.0237));
		Polygon polygon = mMap.addPolygon(rectOptions);
	public void onItemSelected(AdapterView<?> parent, View view, int position,
			long id) {
		// TODO Auto-generated method stub 
Contextual code suggestions in your IDE  Get Codota for Java