title: How do I use Intents with ListView?
body: <p>I know there are many solutions to solve this problem.</p>
  
  <p>But it's not same case as that.</p>
  
  <p>This is my java code.</p>
  
  <pre><code>package com.progme.sejong_bus;
  
  import android.app.Activity;
  import android.os.Bundle;
  import android.widget.ArrayAdapter;
  import android.widget.ListView;
  
  public class BUSActivity extends Activity {
  
      ListView listView;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.bus);
  
          String []data =
              {"공통공지사항","101번 버스정보","102번 버스정보","103번 버스정보","104번 버스정보",
                  "105번 버스정보","106번 버스정보","107번 버스정보","108번 버스정보","109번 버스정보",
                  "110번 버스정보","111번 버스정보","112번 버스정보","113번 버스정보","114번 버스정보",
                  "115번 버스정보","116번 버스정보","117번 버스정보"};
  
          listView = (ListView)findViewById(R.id.listview1);
  
          ArrayAdapter&lt;?&gt; adapter = new ArrayAdapter&lt;Object&gt;(getApplicationContext(), android.R.layout.simple_list_item_1, data);
  
          listView.setAdapter(adapter);
      }
  }
  </code></pre>
  
  <p>and this is my XML code</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="wrap_content"
      android:layout_height="wrap_content"
      android:orientation="vertical"
      android:background="#000000" &gt;
  
      &lt;ListView
          android:id="@+id/listview1" 
          android:layout_width="match_parent" 
          android:layout_height="0dp"
          android:layout_gravity="top"
          android:layout_weight="1"
          android:cacheColorHint="#000000"
          android:dividerHeight="1dp"
          android:divider="#FFFFFF" &gt;
  
      &lt;/ListView&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I want intent to each list.. but how can i select each list?</p>
  
  <p>And what code that i have to use?</p>
  
  <p><strong>EDIT></strong></p>
  
  <p>I want to see my app is working like this image.</p>
  
  <p><img src="https://i.stack.imgur.com/ofMTx.png" alt="SampleImage"></p>
  
  <p>Each list is link for each page.</p>
  
  <p>And I can't do this because i have no idea with code for to work like this.(?)</p>
  
  <p>Anyway.. what I have to do??</p>