This question is locked. New answers and comments are not allowed.
I tried to do something like this:
But onPrepareOptionsMenu doesn't get called.
Is there a hook for this?
var
frame = frameModule.topmost();
var
activity = frame.android.activity;
frame.android.showActionBar =
true
;
activity.onPrepareOptionsMenu =
function
(menu) {
var
menuInflater = activity.getMenuInflater();
inflater.inflate(getResource(
"R.menu.main"
), menu);
};
activity.invalidateOptionsMenu();
But onPrepareOptionsMenu doesn't get called.
Is there a hook for this?