latitude long. pass through Geopoint() ,problem in number format
<p>I have done xml parsing and store result as latitude and longitude in an StringArray and using for loop I store result of lat and longitude in a string named "lat" and "longi" I want to pass these points through GeoPoint() for showing in a map,now the problem is now that i have 43 items in array: "sitesList.getLatitude().size()" when i use in our for loop it force close it is showing only 20 items show when i hard coated it then it is showing all lat long in map so now my qus is how to show all 43 position in mymap???</p>

<pre><code>  **if i use this then force close and gives number format exceptions...**
  ****// for (int i = 0; i &lt; sitesList.getLatitude().size(); i++)****
</code></pre>

<p>and when i take max size 20 then no  problem occur why???</p>

<pre><code>        for(int i=0;i&lt;20;i++)
{
     name = sitesList.getLatitude().get(i);
     name1 = sitesList.getLongitude().get(i);
     Log.i("array_spinner" + i, name);
     Log.i("longitiitude"+i,name1);
     point = new GeoPoint((int) (Double.parseDouble(name) * 1E6),
                (int) (Double.parseDouble(name1) * 1E6));
                 OverlayItem overlayItem = new OverlayItem(point, "Tomorrow ", 
                 "(M gives Bond his mission in Daimler car)");
                 itemizedOverlay.addOverlay(overlayItem);
}
</code></pre>
