I don't think you should be calling the super.onListItemClick().
That's what gets called if you're not handling the click. If you are
handling it, just handle it.

On Jan 11, 9:04 pm, grace <grace.a...@wipro.com> wrote:
> i've tried displaying a simple list in ListActivity,it is working fine
> but the problem i got is with the listener..
> when i click on any of the list item using the mouse onListItemClick()
> is not being called,
> strangely it is working fine with the key-up&key-down keys.
>
> can anybody tell what could be the fault???
>
> ////////this is my sample code
>
> 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);
>         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();
>
>     }}
>
> thanks 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

Reply via email to