How to interact with listview
<p>Actually i have created a listview where i have add Different items..now when i click on a particular item it display another window..on that window i want to display the name of that item..which i click on the listview..the code i have written is...`</p>

<pre><code>private ListView contactList;
    private String lv_arr[]={"Android","iPhone","BlackBerry","AndroidPeople"};
    @Override

    public void onCreate(Bundle icicle)
    {
        super.onCreate(icicle);

        setContentView(R.layout.contact_activity);

        contactList=(ListView)findViewById(R.id.ListView01);    
        contactList.setAdapter(new ArrayAdapter&lt;String&gt;(this,android.R.layout.simple_list_item_1 , lv_arr));
        contactList.setOnItemClickListener(new OnItemClickListener() {
             public void onItemClick(AdapterView&lt;?&gt; parent, View view,
                        int position, long id) {
                      /*Intent myIntent = new Intent(view.getContext(), CallActivity.class);
                      startActivity(myIntent);*/
                    }
                  });
    }
</code></pre>
