关于适配器导入Bmob的数据问题listview.setAdapter(ItemBean);这句如何导入Bmob的数据
Bmob.initialize(this, "a26455d228400f7f160cb6231ca1b1bf");
BmobQuery<ItemBean> query= new BmobQuery<ItemBean>();
query.findObjects(MainActivity.this, new FindListener<ItemBean>() {
@Override
public void onError(int arg0, String arg1) {
// TODO Auto-generated method stub
ListView listview=(ListView) findViewById(R.id.listView1);
listview.setAdapter(ItemBean);
}
@Override
public void onSuccess(List<ItemBean> arg0) {
// TODO Auto-generated method stub
}
});
}
}
}