don't know the advantages of your solution Mark, but the solution of
mscwd01 was not that wrong.
just moving the dialog.show() to the overriden method
onPrepareOptionsMenu(Menu menu) would have done the job. oncreatemenu
is just called once.

On 18 Dez., 13:30, mscwd01 <mscw...@gmail.com> wrote:
> That worked nicely, thanks.
>
> On Dec 18, 1:19 am, Mark Murphy <mmur...@commonsware.com> wrote:
>
> > mscwd01 wrote:
> > > I wish to replace the default Menu with a Dialog that consists of
> > > several TextViews.
>
> > I suspect what you mean is: you want to display a Dialog that consists
> > of several TextViews when the user presses the [MENU] key.
>
> >  > Creating the dialog is easy, however how does one
>
> > > override the defualt Menu and have the dialoge "show" and dismiss" in
> > > the same manner as the default menu?
>
> > Step 1: don't create a menu
>
> > Step 2: use onKeyDown() to detect the [MENU] press, and do what you want
>
> > If I am misinterpreting your question, I apologize.
>
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com
>
> > Android Training on the Ranch! -- Mar 16-20, 
> > 2009http://www.bignerdranch.com/schedule.shtml
--~--~---------~--~----~------------~-------~--~----~
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