title: how to setOnItemClickListener on listview and call the second activity
body: <p>I m raeding csv file and showin it using the  listview and  textview so i want set setOnItemClickListener on list view of text...and when i click on item then other activity will get open..so please tell how do i code for this..</p>
  
  <p>Here is my code...</p>
  
  <hr>
  
  <pre><code> listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
          @Override
          public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
  
              //String listItem = (String) listView.getItemAtPosition(position);
  
              String listItem = (String) parent.getAdapter().getItem(3);
  
              Toast.makeText(getApplicationContext(), listItem.toString(), Toast.LENGTH_SHORT).show();
  
              Intent intent = new Intent(getApplicationContext(), Editinfo.class);
              intent.putExtra("spinner", chosenOption);
              startActivity(intent);
          }
      });
  }
  </code></pre>
  
  <p>Here is catlog report..</p>
  
  <hr>
  
  <p>12-08 11:17:28.630 20936-20936/com.technostark.com.myloginactivity W/ResourceType: Skipping entry 0x108035a in package table 0 because it is not complex!</p>
  
  <p><strong>Update</strong></p>
  
  <pre><code>&lt;RelativeLayout 
      xmlns:android= "schemas.android.com/apk/res/android"; 
      xmlns:tools= "schemas.android.com/tools";   
      android:layout_width="match_parent" 
      android:layout_height="match_parent" 
      android:background="@drawable/shape"&gt; 
        &lt;ListView android:id="@+id/editlistview" 
            android:layout_width="match_parent" 
            android:layout_height= "wrap_content" /&gt; 
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <hr>
  
  <p>Here is textview xml file</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical" android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;TextView
          android:id="@+id/et_Studname"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:inputType="text"
          android:hint="Student Name"
          android:textColorHint="#660000"
          android:textSize="20dp"
          android:textColor="#660000"
          android:clickable="true"
          android:layout_marginLeft="15dp"
          android:layout_marginTop="15dp"
          android:ems="20" /&gt;
  
  
  &lt;/LinearLayout&gt;
  </code></pre>