ListView doesn't open a new activity in onListItemClick when I use a condition
<pre><code>private String lv_arr[]={"Android","iPhone","BlackBerry","AndroidPeople"};

public void onCreate(Bundle icicle)
{
super.onCreate(icicle);
setContentView(R.layout.mylist);
lv1=(ListView)findViewById(R.id.ListView01);
// By using setAdpater method in listview we an add string array in list.
lv1.setAdapter(new ArrayAdapter&lt;String&gt;(this,android.R.layout.simple_list_item_1 , lv_arr));


//getListView().setTextFilterEnabled(true);
}



protected void onListItemClick(ListView l, View v, int position, long id) {
    //super.onListItemClick(l, v, position, id);
    Object o = this.getListAdapter().getItem(position);
    String pen = o.toString();


    if (pen.equals("Android"))
    { 
        Intent myIntent = new Intent(v.getContext(), Catedral.class);
    startActivityForResult(myIntent, 0);
    Toast.makeText(this, "Catedral", Toast.LENGTH_LONG).show();
    }
</code></pre>
