Hey Mark,
Could you describe your scenario a little bit more?
Testing openOptionsMenu in MenuInflateFromXml worked, add to the end of
onCreate:
new Handler().postDelayed(new Runnable() {
public void run() {
openOptionsMenu();
}
}, 1000);
jason
On Tue, Nov 4, 2008 at 8:52 AM, Mark Wyszomierski <[EMAIL PROTECTED]> wrote:
>
> Hmm seeing as how this is not working, is there a way to inject a menu
> button key press to get the menu to come up?
>
> Thanks
>
> Mark Wyszomierski wrote:
> > Hi,
> >
> > How can we programatically show the options menu for an Activity? It
> > seems:
> >
> > Activity.openOptionsMenu()
> >
> > would do it, but it has no effect when I call it. I put a break point
> > in onPrepareOptionsMenu() expecting it to be called sometime
> > afterwards, but nothing in there either. I'm using the release windows
> > Android SDK. Is there some special method of calling it?
> >
> > Sorry if this is a repeat, I thought I had posted this question
> > earlier but I cannot seem to find it any long to follow up on 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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---