Need to access the text of a TextView child of a ListView
<p>I have a ListView that contains a list of TextViews, and in my onItemClick() method, I need to get at the string value of the TextView that was clicked. How do I do this?</p>

<p>Here is my onItemClick function:</p>

<pre><code>public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1, int arg2,
                    long arg3) {
                Intent startNewActivity=new Intent(getBaseContext(),DetailCurrencyActivity.class);
                startActivity(startNewActivity);



            }
</code></pre>

<p>Update 1:
This is the custom list adapter where the listview gets populated:</p>

<pre><code>//custom list adapter
    public class listRecordAdapter extends BaseAdapter{
        private JSONObject[] listOf_Records=null;
        private Context context;
        private TextView ticker,value,value2,changeval;

        public listRecordAdapter(Context context,JSONObject[] listOf_Records){
            Log.i("Concerts", "artistEventAdapter: constructor");
            this.listOf_Records=listOf_Records;
            this.context=context;
        }

        @Override
        public int getCount() {         
            return listOf_Records.length;
        }

        @Override
        public Object getItem(int position) {           
            return listOf_Records[position];
        }

        @Override
        public long getItemId(int position) {           
            return position;
        }

        @Override
        public View getView(int position, View convertView, ViewGroup parent) {
            Log.i("CurrencyActivity", "artistListAdapter: getView");
            if(convertView==null){
                convertView=LayoutInflater.from(context).inflate(R.layout.forex_listview_item, null);
            }
            try{

                ticker=(TextView)convertView.findViewById(R.id.ticker);
                ticker.setText(this.listOf_Records[position].getString("ticker"));
                Log.i("CurrentActivity", "listRecordAdapter: getView ticker-&gt;"+ticker.getText());

                value=(TextView)convertView.findViewById(R.id.value);           
                value.setText(this.listOf_Records[position].getString("value"));
                Log.i("CurrentActivity", "listRecordAdapter: getView value-&gt;"+value.getText());

                value2=(TextView)convertView.findViewById(R.id.value2);         
                value2.setText(this.listOf_Records[position].getString("value2"));
                Log.i("CurrentActivity", "listRecordAdapter: getView value2-&gt;"+value2.getText());

                changeval=(TextView)convertView.findViewById(R.id.changeval);           
                changeval.setText(this.listOf_Records[position].getString("changeval"));
                Log.i("CurrentActivity", "listRecordAdapter: getView changeval-&gt;"+changeval.getText());
            }catch(Exception ex){
                Log.i("CurrencyActivity", "listRecordAdapter: getView exiting with exception message-&gt;"+ex.getMessage());
            }
            return convertView;
        }

    }
</code></pre>
