Show Marker On Google Map Position Obtained From Xml
I want to show a marker on google map position obtained from xml after parsing. So I store latitude and longitude in an arrylist. I want to show but it forse close I pass lat and l
Solution 1:
I can see at least one case, where exception can be thrown.
If you have no any elements in Latitude
and/or Longitude
lists in SitesList
class, or String
values in those lists can't be parsed to double, the following lines will throw NumberFormatException
double lat = Double.parseDouble(coordinates[0]);
double lng = Double.parseDouble(coordinates[1]);
Post a Comment for "Show Marker On Google Map Position Obtained From Xml"