1

Android - How to get the index of listItems from the list

view story
linux-howto

http://stackoverflow.com – i am trying to get index of the list item, through which i can set different views for different items in another activity. Here is my code.. String description[] = {"inspiron","pavilion","macbook"}; /* i want this list on another activity after clicking listitem of first activity.*/ ArrayList listDesc = new ArrayList(); String ArrayDesc[] = null; ListView listViewDesc; ArrayAdapter listAdapterDesc; protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.category); (HowTos)