Thursday, July 12, 2012

[android-developers] Re: Dear all

sorry for my English ,
thanks for this solution but my intention is if i click individual options in list view retrieve   different actives...as like one options for one activity and second for second activity and third for third activity ............................ 

On Wednesday, July 11, 2012 3:02:17 PM UTC+5:30, Rajan wrote:
// ---------- write in onCreate() Method --------------
ListView ls;
        ls=(ListView)findViewById(ls.id.YOUR_LISTVIEW_ID);
        ls.setOnItemClickListener(this);
// ----------------------------------------------------------------
       @Override
public void onItemClick(AdapterView<?> adapter, View v, int position, long viewId)
{
Intent i = new Intent(this,CLASSNAME.class);
                startActivity(i);
}

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment