Sorry, no, the options menu is only created when needed. Your
create/prepare callback can however stash away the menu interface it
receives for your code to use later.
On Fri, Jul 3, 2009 at 12:33 PM, Mathieu Plourde wrote:
>
> Hm, I suppose I wasn't clear enough.
>
> I meant withouth using thos
Hm, I suppose I wasn't clear enough.
I meant withouth using those events methods (onCreateOptionsMenu,
onPrepareOptionsMenu, etc).
Is there a way to get an instance of the options menu from an activity
instance? Something like: activity.getOptionsMenu()
On Jul 3, 3:05 pm, Peli wrote:
> In onPr
In onPrepareOptionsMenu(), you can use menu.findItem(..).
Peli
www.openintents.org
On 3 Jul., 20:21, Mathieu Plourde wrote:
> Is there a way to get the reference to the option menu, from outside
> of onCreateOptionsMenu?
>
> I tried findViewById (for Menu and MenuItem), but it doesn't work.
--~
3 matches
Mail list logo