thedesolatesoul Expert Licensed User Longtime User Jan 14, 2015 #1 Hi Erel, We know in-line java is coming at least for simpler stuff like calling a sub, but will it handle activity callbacks. For e.g. lets say we add the following to in-line java, Code: @Override public boolean onPrepareOptionsMenu(Menu menu){ We know that B4A also inserts its own code into the generated java code, so this will mean we have a duplicate onPrepareOptionsMenu method defined in the java source. Is it possible to either: - B4A does not add the method if its defined in java - B4A appends the user defined java into the same method as B4A generated code Do you have anymore specifics about how in-line java will work?
Hi Erel, We know in-line java is coming at least for simpler stuff like calling a sub, but will it handle activity callbacks. For e.g. lets say we add the following to in-line java, Code: @Override public boolean onPrepareOptionsMenu(Menu menu){ We know that B4A also inserts its own code into the generated java code, so this will mean we have a duplicate onPrepareOptionsMenu method defined in the java source. Is it possible to either: - B4A does not add the method if its defined in java - B4A appends the user defined java into the same method as B4A generated code Do you have anymore specifics about how in-line java will work?
Erel B4X founder Staff member Licensed User Longtime User Jan 14, 2015 #2 thedesolatesoul said: Do you have anymore specifics about how in-line java will work? Click to expand... Not yet... What do you want to do in onPrepareOptionsMenu?
thedesolatesoul said: Do you have anymore specifics about how in-line java will work? Click to expand... Not yet... What do you want to do in onPrepareOptionsMenu?
thedesolatesoul Expert Licensed User Longtime User Jan 14, 2015 #3 Erel said: Not yet... What do you want to do in onPrepareOptionsMenu? Click to expand... While that was just an example, we do really want to get around this: https://www.b4x.com/android/forum/t...4-modifyable-and-advanced-menu.49128/#content
Erel said: Not yet... What do you want to do in onPrepareOptionsMenu? Click to expand... While that was just an example, we do really want to get around this: https://www.b4x.com/android/forum/t...4-modifyable-and-advanced-menu.49128/#content