Use onPrepareOptionMenu().

On Thu, Jul 29, 2010 at 4:23 AM, Amit <amitmishr...@gmail.com> wrote:
> Dear All,
>
> I have created an option menu which also has a sub menu. In the sub
> menu I have a setting for enabling/disabling images in my application
> based on the application level flag that i change based on the option
> being clicked.
>
> What I am observing is that when i click on the "Menu" and change the
> settings from enable Images to disable Images. its not reflecting.
>
> I have put the debug log and what have been seen is the
> onOptionCreateMenu method is getting called only one time- first time
> when i click the "Menu" button. That is the reason the changed sub
> menu is not getting reflected.
>
> My question is that is there a way i can re-create the option menu
> every time user presses the "Menu Button".
>
> Thanks in advance.
>
> Best Regards
> Amit
>
> --
> 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
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.9 Available!

-- 
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

Reply via email to