Hi Android Experts,

i need to get the selected index off my listview

i have it in Activity:

public class myClass extends Activity {

  private ListView myListView;

 myListView.setAdapter(aa);



//////////////////////////

i got an example to get index in context menu like

public boolean onContextItemSelected(MenuItem item) {
  super.onContextItemSelected(item);
  AdapterView.AdapterContextMenuInfo menuInfo =
(AdapterView.AdapterContextMenuInfo) item.getMenuInfo();
  int index = menuInfo.position;

but i need the index on click ,not in context,


any solution?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to