I´m retrieving from a database points saved to create a list and then set a polyline in google maps
I initialize each time the "xlatLong" but the "xList" itens contain the last value inserted
B4X:
Dim xLatLong As LatLng
xList.Initialize
Do While xCursor.NextRow
xLatLong.Initialize ( xCursor.GetString ( "latitude" ), xCursor.GetString ( "longitude" ) )
xList.Add ( xLatLong )
Loop
xCursor.Close
I initialize each time the "xlatLong" but the "xList" itens contain the last value inserted