Hi everyone, My issue is simple....below is the code. When the list filters, and the person clicks, no matter what the position is on 0...Can I do it by the string name in the listview instead of the position?
public void onListItemClick(ListView l, View v, int position, long id) { if(position == 0) { Intent in = new Intent(this, ingredientsclam.class); startActivity(in); } } Clam Soup is at position 0, and apple pie is at position 1. If they search apple pie it will filter, but when they click it it will take them to the position 0... -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en