................. ok................... While executing this code, list is appearing.....and while i click on listitems, the called activity is not appearing....dat means,,nothing inside OnItemClick is printing or displaying......
Also...from the result i am getting,,it is clear that onPostExecute() method is invioking and only the item click portion is not working.... No force close or logcat errors are displaying.......while clicking on the listview, nothing is happening,,,,the view remains the same.... My LogCat print inside onClick method outputs nothing...... I think now u undrstood my problem??? On Thursday, May 10, 2012 2:57:32 PM UTC+5:30, Febi.M.Felix Maliakkal wrote: > > Hi, > > this is my adapter > SimpleAdapter adapter=null; > > adapter = new > SimpleAdapter(ListItemClickActivity.this, mylist , R.layout.newslist, > > new String[] { "name", > "time","image"}, > new int[] { > R.id.newsName,R.id.newsTime,R.id.newsImage}); > adapter.setViewBinder(new MyViewBinder()); > > setListAdapter(adapter); > > > I need to make the three views inside this listview clickable.... > > This code is not working for me.... > lv.setOnItemClickListener(new OnItemClickListener() { > > @Override > public void onItemClick( > AdapterView<?> arg0, > View arg1, int arg2, > long arg3) { > // TODO Auto-generated method stub > Log.i("LOGCAT", "View " +arg1.getId()); > Intent i=new Intent(getApplicationContext(),NewClass.class); > startActivity(i); > } > }); > -- 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