How to get TextView values from a listView Items?
<p>I tried to get answer from different similar questions here but didn't get any answer.
Actually I am trying to get values from multiple textViews of any listview item(s).
Here is the code<br>
    ListView listView = getListView();</p>

<pre><code>listView.setOnItemClickListener(new OnItemClickListener() {

@Override
public void onItemClick(AdapterView&lt;?&gt; parent, View view, int postion, long id) {

String contactId = ((TextView) findViewById(R.id.cid)).getText().toString();
String contactName= ((TextView) findViewById(R.id.contactName)).getText().toString();
String contactNo= ((TextView) findViewById(R.id.contactNo)).getText().toString();
Intent i = new Intent(getApplicationContext(), editContactActivity.class);
i.putExtra(TAG_ID, contactId );
i.putExtra(TAG_NAME, contactName);
i.putExtra(TAG_CONTACT_NO, contactNo);
startActivityForResult(i, 100);


        }

    }); 
</code></pre>

<p>What result i am getting, I am getting textviews value of first item(Position) in listview, either i am clicking any item but i am getting textviews value of first item(Position) in listview,
Here is the code how i am getting values on other activity
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.edit_contact);</p>

<pre><code>    btnSave = (Button) findViewById(R.id.btnSaveContact);
    btnDelete = (Button) findViewById(R.id.btnDeleteContact);

    Intent i = getIntent();
    cId = i.getStringExtra(TAG_CONTACT_ID);
    cNameTxt = i.getStringExtra(TAG_CONTACT_NAME);
    cNumberTxt = i.getStringExtra(TAG_CONTACT_NUMBER);

    //Log.d("Value of contact name", cNameTxt);
    //Log.d("Value of contact name", cNumberTxt);


    TextView contactIdTxtView = (TextView) findViewById(R.id.cid);
    cName = (EditText) findViewById(R.id.editCName);
    cNumber = (EditText) findViewById(R.id.editCNumber);


    cName.setText(cId);
    cNumber.setText(cNumberTxt);

}
</code></pre>

<p>I will be very thankful if anyone will help in detail
Thanks
Regard
Akmal Rasool</p>
