[android-developers] list view row number.

2011-01-06 Thread Amit Mangal
Hi Any one, Is there any way to get row number in list view in which i clicked ? suppose that if i clicked on row 5 how can i get which number of roe i clicked ? thank you -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] list view row number.

2011-01-06 Thread Kapil Lokhande
Hi Amit, you have to override onListItemClick event in your activity extending listactivity. in that event you wull get position or row number of list item. -- Thanks Regards, Kapil Lokhande | Dexter Advisory Pvt. Ltd. http://dexterltd.com/ | Android Developer [image: dexterlogo.jpg] On Thu,

Re: [android-developers] list view row number.

2011-01-06 Thread Amit Mangal
which function i need to call ? do you have some code snippet i am new to android and don know any thing. thank you On Thu, Jan 6, 2011 at 5:58 PM, Kapil Lokhande kpl.lokha...@gmail.comwrote: Hi Amit, you have to override onListItemClick event in your activity extending listactivity. in

Re: [android-developers] list view row number.

2011-01-06 Thread Kapil Lokhande
here is the snippet import android.app.ListActivity; import android.os.Bundle; import android.widget.ArrayAdapter; public class SimpleListView extends ListActivity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState)

Re: [android-developers] list view row number.

2011-01-06 Thread Amit Mangal
thank you i am trying to get row number using this code. On Thu, Jan 6, 2011 at 4:44 AM, Kapil Lokhande kpl.lokha...@gmail.comwrote: here is the snippet import android.app.ListActivity; import android.os.Bundle; import android.widget.ArrayAdapter; public class SimpleListView extends

Re: [android-developers] list view row number.

2011-01-06 Thread Mark Murphy
The position parameter to the onListItemClick() method is the row number, insofar as such a concept exists. On Thu, Jan 6, 2011 at 7:51 AM, Amit Mangal forum.amit.man...@gmail.comwrote: thank you i am trying to get row number using this code. On Thu, Jan 6, 2011 at 4:44 AM, Kapil Lokhande