Thanks Jason, that was it, I wasn't posting the call to be run later - I just was using it in a button click handler directly like:
void onClick() { openOptionsMenu(); } so posting the call worked, Thanks On Nov 4, 12:29 pm, "Jason Parekh" <[EMAIL PROTECTED]> wrote: > 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 android-developers@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---