title: Listview to another layout. Is it possible?
body: <p>I am a beginner. How will my string can be a clickable one that can redirect to other layout. or different layouts.</p>
  
  <p>EDITED
  This is my <code>MainActivity.java</code>:</p>
  
  <pre><code>public class MainActivity extends Activity {
  
  String[] country = new String[] {
          "China",
          "India",
          "Sri Lanka",
          "Malaysia",
          "Japan",
  };
  
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
  
      ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this, R.layout.listview_layout, country);
  
      ListView listView = (ListView) findViewById(R.id.listView);
      listView.setAdapter(adapter);
  
      listView.setOnItemClickListener(new OnItemClickListener() {
  
          @Override
          public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1, int arg2,
                  long arg3) {
  
              Intent in = new Intent(MainActivity.this,PageOne.class);
  
              startActivity(in);
          };
      });
  
  }
  </code></pre>
  
  <p>and This is the PageOne.class</p>
  
  <pre><code>public class PageOne extends Activity implements OnClickListener{
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.china);
      getIntent().getStringExtra("China");
    }
  
  @Override
  public void onClick(View v) {
      // TODO Auto-generated method stub
  
  }
    }  
  </code></pre>
  
  <p>I wanted to do is when India is Click it will go to India.xml
  And if China is click it will go to China.xml but what happening is any String I click the result is china.xml. </p>