title: How to load an specific activity(Intent) on Listview(item)Click?
body: <pre><code> package com.example.app;
  
   import com.example.app.adaptor.*;
   import android.app.Activity;
   import android.app.ListActivity;
   import android.content.Intent;
   import android.os.Bundle;
   import android.view.View;
   import android.view.View.OnClickListener;
   import android.widget.Button;
   import android.widget.ListView;
  
  
   public class ListviewExample extends ListActivity {
  
  static final String[] ASDFGH = new String[] { "ABC", "PQR",
          "XYZ", "RAA","AA" };
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
  
  
  
      setListAdapter(new etcArray(this, main_activity ));
  
  }
  
  
  @Override
  protected void onListItemClick(ListView l, View v, int position, long id) {
  
      // get selected items
      String selectedValue = (String) getListAdapter().getItem(position);
              if(selectedValue.equalsIgnoreCase("ABC"))
      {
          Intent in = new Intent(getApplicationContext(),ABC.class);
          startActivity(in);
      }
      else
          if(selectedValue.equalsIgnoreCase("AA"))
          {
              Intent in = new Intent(getApplicationContext(),AA.class);         
              startActivity(in);
          }
  
     }
  </code></pre>
  
  <p>In the above program ..using normal condition like if string.equalsIgnorecase("AA")
   we can launch the intent on that specific click !! is there any method to launch an activity in any listview Item Click ???</p>