tags:

views:

47

answers:

0

Hi,

I am new To Android.I have created ListView.I have used OnItemClickLIstener with the ListView .It works.Then i tried with Intent with OnItemClickListener.the Code is

 ArrayAdapter<String> adapter =new   ArrayAdapter<String>(TabHost1.this,android.R.layout.simple_list_item_1,new 

String[]{"4324234","432432","445456"});

ls2.setAdapter(adapter);

ls2.setOnItemClickListener(new OnItemClickListener(){

public void onItemClick(AdapterView<?> arg0, View arg1,int arg2, long arg3)
{

    Intent t=new Intent(this,Application.class)
     startActivity(t);
 }

I have created Application.java and added Intent action in Mainfest.xml file also. I do Know how to Proceed with It.Whether we can use Intent with OnItemClickListener.If possible please help me with some Examples.Thanks in advance...