To change the menus each time they are displayed, implement Activity.onPrepareOptionsMenu().
On Apr 7, 12:45 pm, Android-Berry <[EMAIL PROTECTED]> wrote: > Hi There, > > As you know, we create a menuitem at onCreateOptionsMenu method, > > However, when the view content has been changed, for example, > > first the Screen is blank, no view is added,and we display only one > menuitem called "Add a Button", > After fullfill this function, I want to add a menuitem "Delete a > Button" when A button-view added to screen and focus is on. > > so when the user click menu, it will show Add a Button,Delete aButton. > > How to implement this function, which method should we override it? > > Thanks~~ --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

