I want to fill the first listview line with an int from another method in my databasehelper, and the fill the rest of the view.
All I can find googleing this is how to do it with an ArrayAdapter
this is how i fill the view now:
new Handler().post(new Runnable(){
@Override
public void run(){
cursorAdapter = new CustomCursorAdapter(MainActivity.this, contactDBHelper.listAll());
listView.setAdapter(cursorAdapter);
}
});
what I want to do is to fill the first line with the coming int from this method.
contactDBHelper.countContact();
Any ideas?