I suppose the id of one of your MenuItem is 0; public boolean onOptionsItemSelected(MenuItem item) { if(item.getItemId()==0) {
// Launch activity here by Intent... } On Jan 14, 4:10 pm, Kumar Bibek <coomar....@gmail.com> wrote: > check the itemids or titles. > > Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com > > On Thu, Jan 13, 2011 at 1:31 PM, Naveen kumar < > > > > > > > > naveen.venkatesha...@gmail.com> wrote: > > > hi, > > > what is the procedure to call an activity from option menu using switch > > case. please help. > > > Thanks > > naveen > > > -- > > 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+unsubscr...@googlegroups.com<android-developers%2Bunsubs > > cr...@googlegroups.com> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en