Thanks for this.
I guess a B4A class is also coming from a Java class, which has events like onCreate etc? To be honest, there is no point in hooking into class events, but I just wanted to be generic.
I may be complicating things but there are a couple of scenarios I think about:
- There is a possibility of running setTheme in onCreate BEFORE calling super.onCreate and setContentView to change the theme at runtime
- There is a possibility of running onPreparedOptionsMenu AFTER the template code to decontruct and reconstruct the menu
- There is a possiblity of completely overriding events like onPrepareOptions (not a good option, but it means you dont have to deconstruct things)
I know this is for the savy, the slick and the spurious, but hey, you are the sublime!
It works with hooks that I add to the template code.
Can you elaborate on this?