How to fill an arraylist on android from mysql?

0

Help, can someone tell me how to store a mysql query in an arraylist? I define it this way:

String latitude = jsonObject.getString("latitud");
String longitude = jsonObject.getString("longitud");

Double lat = Double.parseDouble(String.valueOf(latitude));
Double long = Double.parseDouble(String.valueOf(longitude));

ArrayList<LatLng> arrayPoints = new ArrayList<>();
arrayPoints.add(new LatLng(lat, long));

But as you can see in the Image I have several data, how could I do it to extract all and save it in that arraylist ??? To then mount it on a map ...

    
asked by Wilson Cajisaca 06.04.2018 в 02:16
source

0 answers