You are misunderstanding the inheritance here. If you want to populate the menu in a subclass, try this: public class XyActivity extends XyOptions { public void onCreate(Bundle savedInstanceState) { //.. other } } public class XyOptions extends Activity { public EditImageOptions() {...} @Override public boolean onCreateOptionsMenu(Menu menu) {...} @Override public boolean onPrepareOptionsMenu(Menu menu) {...} @Override public boolean onOptionsItemSelected(MenuItem item) {...} }.
You are so damn right. I just figured it out and actually came back to correct myself. This is a little embarrassing.
Sorry for my stupidity... – steff May 31 '10 at 12:58.
I think what you are trying to do is, invoke onCreateOptionsMenu in XyOptions while being in the activity XyActivity, by instantiating an object of XyOptions in XyActivity. Its not possible as far I know. OnCreateOptionsMenu is only invoked on pressing menu button on the phone.
You should correct the flow of inheritance, as pointed out already.
Therefore, I'd like to relocate some overriden methods to a subclass (let's call it XyOptions). Unfortunately, the methods in XyOptions are never called. And I don't get why.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.