title: android listview onItemClick
body: <p>Every time I run this, I get error. I don't know what is wrong ?
  I just want to get the string from <code>array</code> by index and put it on the URL and run it in anther activity.</p>
  
  <p>package info.androidhive.customlistviewvolley;</p>
  
  <pre><code>import java.util.ArrayList;
  
  import com.squareup.picasso.Picasso;
  import android.os.Bundle;
  import android.util.Log;
  import android.view.View;
  import android.view.View.OnClickListener;
  import android.widget.ArrayAdapter;
  import android.app.Activity;
  import android.content.Intent;
  import android.widget.AdapterView;
  import android.widget.AdapterView.OnItemClickListener;
  import android.widget.ImageView;
  import android.widget.ListView;
  import android.widget.Switch;
  import android.widget.TextView;
  import android.widget.Toast;
  
  public class Show extends Activity {
      ArrayList&lt;String&gt; lista = new ArrayList&lt;String&gt;();
      ArrayAdapter&lt;String&gt; adaptera;
         int po;
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.show);
  
       ListView myListView = (ListView)findViewById(R.id.mylistView1);
          myListView.setClickable(true);  
          myListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
                @Override
                public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1, int position, long arg3) {
                   Intent appInfo = new Intent(getApplicationContext(), VideoViewActivity.class);
                   ArrayList&lt;String&gt; dad =appInfo.getStringArrayListExtra("eps");
                   int itemPosition  = position;
                   appInfo.putExtra("url",dad.get(itemPosition).toString());
                   startActivity(appInfo);
                }
              });
  
  
  
      }
  
      @Override
      protected void onStart() {
          // TODO Auto-generated method stub
          super.onStart();
          Intent i = getIntent();
          String aaaaa = i.getStringExtra("img");
          String tit = i.getStringExtra("rank");
          TextView te = (TextView) findViewById(R.id.textView1);
          te.setText(tit);
          ArrayList&lt;String&gt; dad =i.getStringArrayListExtra("eps");
          ImageView isd = (ImageView)findViewById(R.id.imageView1);
          Picasso.with(getBaseContext()).load(aaaaa).into(isd);
          ListView myListView = (ListView)findViewById(R.id.mylistView1);
          ArrayList&lt;String&gt; myStringArray1 =  new ArrayList&lt;String&gt;();
          for (int f= 1; f &lt;= dad.size();f++)
          {
              myStringArray1.add(String.valueOf(f));
          }
          adaptera = new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_list_item_1, myStringArray1);
  
              adaptera.notifyDataSetChanged();
              myListView.setAdapter(adaptera);
      }
  
  
  }
  </code></pre>