I've tried different solutions, but I always receive a Non static method
error on the setAdapter()
call.
ListView SearchList=findViewById(R.id.SearchList);
final ArrayList<String> startDate=new ArrayList<String>();
final ArrayAdapter arrayAdapter_startDate=new ArrayAdapter(this,android.R.layout.simple_list_item_1,startDate);
ParseQuery <ParseObject> searchTrip=ParseQuery.getQuery("Trip");
searchTrip.whereGreaterThanOrEqualTo("Start_Date",findViewById(R.id.StartDate));
searchTrip.findInBackground(new FindCallback<ParseObject>() {
@Override
public void done(List<ParseObject> objects, ParseException e) {
if (e==null && objects!=null) {
for(ParseObject Start_Date: objects) {
startDate.add(Start_Date.getString("StartDateInsert")); }
ListView.setAdapter(arrayAdapter_startDate);
} else {e.printStackTrace();}
}
});