android - How to draw path in Google maps V2 -


i trying draw path in google maps v2.

private void drawpath() {      string arraylatitude[] = { "13.019203", "13.019789", "13.020740",             "13.021398", "13.022026", "13.022768", "13.024022",             "13.024639", "13.025580", "13.026364" };      string arraylogitude[] = { "80.206267", "80.206342", "80.206385",             "80.206407", "80.206407", "80.206536", "80.206815",             "80.206922", "80.207072", " 0.207523" };       arraylist<latlng> points = new arraylist<latlng>();     polylineoptions polylineoptions = new polylineoptions();      (int j = 0; j < arraylatitude.length; j++) {         // hashmap<string, string> point = path.get(j);          double lat = double.parsedouble(arraylatitude[j]);         double lng = double.parsedouble(arraylogitude[j]);         latlng position = new latlng(lat, lng);         points.add(position);     }             (int = 0; < points.size() - 1; i++) {       latlng src = points.get(i);       latlng dest = points.get(i + 1);        polyline line = googlemap.addpolyline(         new polylineoptions().add(           new latlng(src.latitude, src.longitude),           new latlng(dest.latitude,dest.longitude)         ).width(2).color(color.blue).geodesic(true)       );     } } 

but when polyline placed in map, @ end straight line created. screen image

i don't want line. ideas?

string arraylatitude[] = { "13.019203", "13.019789", "13.020740", "13.021398", "13.022026", "13.022768", "13.024022", "13.024639", "13.025580", "13.026364" };

string arraylogitude[] = { "80.206267", "80.206342", "80.206385",         "80.206407", "80.206407", "80.206536", "80.206815",         "80.206922", "80.207072", **" 0.207523"** }; 

isn't reason? looks wanted there 80.207523 last longitude value.