HI all,
First of all i want to know that what are the index of list view items??? is something like the index of array (a[0],a[1]....).
Actually i want to get the index of list item. it always showing me -1 here is the code.
protected void onListItemClick(ListView l, View v, int position, long id) {
super.onListItemClick(l, v, position, id);
Object index = getListAdapter().getItem(position);
Intent myIntent = new Intent(this, newsdisplay.class);
//Create the view using FirstGroup's LocalActivityManager
View view = newsgroup.group.getLocalActivityManager()
.startActivity("show_city", myIntent
.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP))
.getDecorView();
//Again, replace the view
newsgroup.group.replaceView(view);
}
pls help me how to get the index of list view items and is this unique to other items??