Created
February 20, 2015 15:53
-
-
Save pratamawijaya/023a643ecd948d75f698 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private List<LatLng> readDataFromDB(String id) { | |
RealmResults<LocationModel> result = realm.where(LocationModel.class).equalTo("id", id).findAll(); | |
List<LatLng> listlatlng = new ArrayList<>(); | |
for (LatLngModel data : result.get(0).getLatLngRealmList()) | |
listlatlng.add(new LatLng(data.getLat(), data.getLng())); | |
return listlatlng; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment