1

Delayed call newView in CursorAdapter when using Dialog

view story
linux-howto

http://stackoverflow.com – Can anyone help me. My ListView works in normal Activity, but when a add it into the Dialog so it does not work as it should. When I use dialog newView and bindViev are not called in the correct order. Initialization Cursor EmployeesCursor = EmployeesCursor(); PersonListAdapter personList = new PersonListAdapter(this,EmployeesCursor); AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("PŘIDAT ŘEŠITELE"); ListView lv = new ListView(this); lv.setAdapter(personList); builder.setView(lv); dialog.show(); Adapter public class PersonListAdapter extends Curs (HowTos)