Re: [android-developers] Menu throughout Application

2010-02-16 Thread Mark Murphy
Frank Weiss wrote: > Although Mark's idea is workable, it may be bad OOD. It would work if > all your apps are direct subclasses of Activity, but what if some are > MapActivity, etc? Yup. :: wishes Java had Ruby's mixin capability for things like this :: -- Mark Murphy (a Commons Guy) http://co

Re: [android-developers] Menu throughout Application

2010-02-16 Thread Frank Weiss
Although Mark's idea is workable, it may be bad OOD. It would work if all your apps are direct subclasses of Activity, but what if some are MapActivity, etc? I think the answer may depend on that and how you want to use the global menu. Using delegation, you could have each menu be created by the s

Re: [android-developers] Menu throughout Application

2010-02-16 Thread Mark Murphy
MobDev wrote: > Hi, > > I have implemented a Menu within an Activity, but I'd like this Menu > to exist throughout my whole application... > How can thsi be achieved ? Should I be placing the > public boolean onCreateOptionsMenu(Menu menu) > method within every single Activity or is there some way

[android-developers] Menu throughout Application

2010-02-16 Thread MobDev
Hi, I have implemented a Menu within an Activity, but I'd like this Menu to exist throughout my whole application... How can thsi be achieved ? Should I be placing the public boolean onCreateOptionsMenu(Menu menu) method within every single Activity or is there some way to "share" the menu ? Than