Marker is not adding properly while add through for loop
问题 Marker not properly adding through for loop When i give i=2 then it's loading 2nd marker otherwise it's just loading single marker Can you please tell me what could be the reason JSONObject jsonObject = new JSONObject(result); for (int i = 1; i <= jsonObject.length(); i++) { jsonObject = jsonObject.getJSONObject(Integer.toString(i)); Double lat = jsonObject.getDouble("latitude"); Double lon = jsonObject.getDouble("longitude"); int sno = jsonObject.getInt("sno"); Toast.makeText(getBaseContext(