Hi,
I'm facing a problem where the onOptionsItemSelected method for a
fragment is not called. Is this a known issue/limitation? The fragment
adds the menu successfully, but it is never called to handle menu item
selection.
According to
http://developer.android.com/guide/topics/ui/actionbar.html#ActionItems
: "Note: If you added the menu item from a fragment, then the
respective onOptionsItemSelected() method is called for that fragment.
However the activity gets a chance to handle it first, so the system
calls onOptionsItemSelected() on the activity before calling the
fragment."
I've tried without adding any onOptionsItemSelected method to my
FragmentActivity. In that case nothing happens. So, I added an
override for that method and it is called. So, I tried to return both
false and super.onOptionsItemSelected but never got any call into my
fragment.
Would be great with some help with this issue.
Best regards,
Andreas Häber