There is no way I know of in the same activity. However, you can write the code for one activity and a selected menu, then you can start another activity with a different menu, etc. I have a few programs working this way.
A possible workaround is to catch the menu key within the sub Activity_KeyPress and provide a popup menu with the AHQuickAction library instead of an "normal" menu.
This can be changed at runtime according to the state of your application.