Understnding postion parameter in getView method of simplecursoradapter android
<p>I would like to understand in detail the significance of position parameter in getView method of adapter.In a ListView i would like to set custom adapter with Textview and button.<br>
The code is mentioned below.</p>

<pre><code>  public View getView(final int position, View convertView, ViewGroup parent) 
    {  
        try
        {
            if(convertView==null)
            {
            LayoutInflater inflater = context.getLayoutInflater();   
            convertView = inflater.inflate(R.layout.contactslist, null);

             name = (TextView) convertView.findViewById(R.id.contactname);
            number = (TextView) convertView.findViewById(R.id.contactmobnum);
             call=(Button)convertView.findViewById(R.id.callcust);
            }
            name.setText(cursor.getString(1));
            number.setText(cursor.getString(2));
            cursor.moveToNext();
            call.setOnClickListener(new OnClickListener() {

                @Override
                public void onClick(View v) 
                {
                                            Log.i("Testing","Position selected is "+position);
                                          }             
                                    });

        } catch(Exception e) {
            Log.d("Testing", "isDefault::: exec"+e);
        }

        return convertView;
    }  
</code></pre>

<p>If suppose i have total 10 items in the cursor and i click on 5th position call button,what is the expected result?<br>
Will it be 10 or 5?<br>
Am confused because i used Base Adapter earlier and have experienced it as 10 but in the above code it returns 5,Please let me understand if the position returns the row id only while row is added in list or it also returns you the selected row id?<br>
Looking forward for better understanding</p>
