title: How can draw a line(Polyline ) in Android studio in OSM (open map street)?
body: <p>I want to draw a line in OSM between 2 points ,but i cant find anything that help me. something likes Polyline in googlemap.</p>
  
  <pre><code>public class MainActivity extends Activity  {
      private MapView         mMapView;
      private MapController   mMapController;
      public TextView textView;
      public String longitude;
      public String latitude;
      public Drawable marker;
      private ItemizedIconOverlay&lt;OverlayItem&gt; anotherItemizedIconOverlay;
      ArrayList&lt;OverlayItem&gt; overlayItemArray;
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.osm_main);
          mMapView = (MapView) findViewById(mapview);
          textView = (TextView) findViewById(R.id.textView);
  
          mMapView.setTileSource(TileSourceFactory.DEFAULT_TILE_SOURCE);
          mMapView.setBuiltInZoomControls(true);
          mMapController = (MapController) mMapView.getController();
          mMapController.setZoom(16);
          Double latE6 = (52.507621 )* 1E6;
          Double lngE6 = (13.407334 )* 1E6;
          GeoPoint gPt = new GeoPoint(latE6.intValue(), lngE6.intValue());
          mMapController.setCenter(gPt);
  }
  }
  </code></pre>