I have a android app. There is a record route feature. I recorded the coordinates, how can I add the route to the map? I tried this but not work.
Polyline route = map.addPolyline(new PolylineOptions()
.add(latlng1, latlng2, latlng3, latlng4, latlng5)
.width(10)
.color(Color.argb(255, 255, 150, 0)));