first of all retrive the which item is clicked and then based on cliked item call the activity so your query will be solve.
On Fri, Jul 13, 2012 at 8:41 AM, srikanth <srikanthandroidgroups@gmail.com> wrote:
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);// ----------------------------------------------------------------@Overridepublic 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
--
Regards
jagruti Sangani
iNextrix Technologies
--
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