could anyone tell me how to dynamically select an item in a listview??
i tried
listview.setSelection(1);
and
listview.performItemClick(listview,3,listview.getItemIdAtPosition(3));

both of them don't work..please help me.

Member Avatar

Try

ListView.setItemChecked(int position, boolean checked);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.