onPrepare is the place where you should write your code if your menu options change within an activity. If they are same throughout, then you can write it onCreate method.
This is the correct method. Go ahead. Thanks and Regards, Kumar Bibek On Apr 8, 11:08 am, praj <[email protected]> wrote: > Hi All, > > In my application I am required to recreate the menu every time. So > for doing this I override the onPrepareOptionsMenu, where i initially > removethe items from my menu and then add the items depending on my > conditions. So I was just wondering if this is the correct approach to > recreate menus or is there any other way by which we should be > recreating menu's . (My menus are on different Activities) . > > Thanks, > Prajakta -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject.

