[android-beginners] List Activity Listener Not Working

2010-07-16 Thread Saket Srivastav
List activity listener is not listening.

lv.setOnItemClickListener(new OnItemClickListener() {

public void onItemClick(AdapterView? arg0, View arg1, int position,
long arg3) {
System.out.println(ARG 2 = +position);
Intent i = new Intent(MenuList.this, SICalculator.class);
startActivity(i);
 }
});

any reasons why the list item click listener is not working???


   Regards
Saket Srivastav

-- 
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


Re: [android-beginners] List Activity Listener Not Working

2010-07-16 Thread TreKing
On Fri, Jul 16, 2010 at 1:38 PM, Saket Srivastav saketsrivasta...@gmail.com
 wrote:

 any reasons why the list item click listener is not working???


Probably

Try 
thishttp://developer.android.com/reference/android/app/ListActivity.html#onListItemClick(android.widget.ListView,
android.view.View, int, long) instead.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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