title: Android: extract the string of the TextView in the list
body: <p>Following is my listview layout. Now I have a image and textview in my listview. I want to extract the content of the textview and show it in the Toast.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent" android:layout_height="wrap_content"
      android:orientation="horizontal"
      android:background="#E6E7E2"&gt;
      &lt;ImageView android:id="@+id/Thumbnail" android:layout_width="wrap_content"
          android:layout_height="wrap_content" android:src="@drawable/icon" /&gt;
      &lt;TextView android:id="@+id/FilePath" android:layout_width="wrap_content"
          android:layout_height="wrap_content" 
          android:textColor="#000"/&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Usual way is not working and application crashing when I'm trying like this</p>
  
  <pre><code>// on click lister for list view
          lv.setOnItemClickListener(new OnItemClickListener() {
  
              @Override
              public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1, int arg2,
                      long arg3) {
                  String sdcarduri = (((TextView) arg1).getText()).toString();
                  //Toast.makeText(AndroidThumbnailList.this, "BEEEEEEE", 2000).show();
  
  
              }
  
          });
  </code></pre>