i've been trying to figure this out all day. I have a Query list from stackMob that is supposed to give me the latest 10 obj I created in a list I think. I don't really understand how this stuff works. I made a layout with a listview and I want to use that list to populate the listview. How do I do that? I've tried over 10 different ways and nothing works. I then tried to println this list in the console but that's not doing anything either.
public void QueryWritter() {
StackTask.query(StackTask.class, new StackMobQuery().isInRange(0, 9),
new StackMobQueryCallback<StackTask>() {
ListView queryTwo = (ListView) findViewById(R.id.objectreader_two);
TextView queryOne = (TextView) findViewById(R.id.objectreader);
@Override
public void failure(StackMobException e) {
// TODO Auto-generated method stub
e.printStackTrace();
}
@Override
public void success(List<StackTask> task) {
// TODO Auto-generated method stub
//task = new ArrayList<StackTask>();
//ArrayAdapter<StackTask> a = new ArrayAdapter<String>(getBaseContext(), android.R.layout.simple_list_item_1, task);
System.out.println(task);
}
});
}
Thanks in advance!