Android-Problem in Menu of Activity in Activity Group?

Here is how you roll with it: In your ActivityGroup class onCreateOptionMenu() call the current Activity s onCreateOptionMenu() i.e.

Here is how you roll with it: In your ActivityGroup class onCreateOptionMenu() call the current Activity 's onCreateOptionMenu() i. E public boolean onPrepareOptionsMenu(Menu menu) { Activity activity = getLocalActivityManager(). GetCurrentActivity(); return activity.

OnPrepareOptionsMenu(menu); } @Override public boolean onPrepareOptionsMenu(Menu menu) { Activity activity = getLocalActivityManager(). GetCurrentActivity(); return activity. OnPrepareOptionsMenu(menu); } @Override public boolean onOptionsItemSelected (MenuItem item) { Activity activity = getLocalActivityManager().

GetCurrentActivity(); return activity. OnOptionsItemSelected(item); } and in your individual Activity @Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater. Inflate(R.menu.

Menu, menu); return true; } @Override public boolean onPrepareOptionsMenu(Menu menu) { return true; } @Override public boolean onOptionsItemSelected (MenuItem item) { switch (item.getItemId()) { case R.id. MENU_LOGOUT: Dialog. ShowToast(this, "message"); return true; case R.id.

MENU_HELP: break; case R.id. MENU_ABOUT: break; } return super. OnOptionsItemSelected(item); } and if you want any Activity without having any Menu just override these methods @Override public boolean onCreateOptionsMenu(Menu menu) { return true; } @Override public boolean onPrepareOptionsMenu(Menu menu) { return true; }.

Thanks a lot for you help. Now its working fine. – Manish Aug 25 at 10:38.

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.

Related Questions