KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am using the Geocoder class to fetch multiple location objects by using the following code: Geocoder geocoder = new Geocoder(this, Locale.getDefault()); List<Address> addresses = geocoder.getFromLocation(LATITUDE, LONGITUDE, 3); Address[] addresses_array = new Address[addresses.size()]; addresses.toArray(addresses_array); for( int i = 0; i < addresses_array.length; i++ ){ //create location object here locOBJ.setLatitude(LATITUDE); locOBJ.setLongitude(LONGITUDE); } In addition, inside the forloop, I am trying to dymanically create location objects to add to an array; How can I create blank location objects ?
Tags (comma-separated)
Save Edits
Cancel