hi, i've tried displaying a simple list using listactivity. it is working fine but the problem is with the listener. when i click on ant list item with mouse ,the onListItemClick() listener is not called.. strangely this is working fine when i click the key-up&key-down keys.
can anybody tell what could hav gone wrong?why is muouse click not working??? /////////my code goes like this public class NoteList extends ListActivity{ List<String> feeds = new ArrayList<String>(10/*messages.size()*/); String [] path={"http://10.200.207.85:8080/android_news.xml","http:// 10.200.207.85:8080/rss.xml"}; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.notes_list); setTitle("RssReader/ListSubScriptions"); fillList(); } public void fillList() { feeds.add("Android_news"); feeds.add("MS-US-Local"); this.setListAdapter(new ArrayAdapter<String>(this, R.layout.row,feeds)); } @Override protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); String data = path[position]; NoteEditLogic n=new NoteEditLogic(getContentResolver()); n.save1(null, data); finish(); } thanx in advance
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en