Java Question Help!

Enxix

Member
Hello

Java code in B4X. I want to develop a library. I only need to wrap 5 functions. I want to do it in B4X without using Eclipse. I’ve already implemented 4 of the 5 methods. The fifth one is asynchronous. I would need to use RaiseEvent or RaiseEventFromUI to trigger the event in B4X. However, I’m stuck on how to call these methods so that when the asynchronous operation finishes, the event is triggered in B4X.
My main question is about the BA object.

Let me know if you'd like me to help you structure the Java code that uses BA.RaiseEventFromUI() properly.
 
  • Like
Reactions: byz

Enxix

Member
"Help!" is a bad title.
Hi, sorry, you're right.
I want to know how to create a wrapper for a simple AAR without using Eclipse.
I managed to get four methods to work, but one method is asynchronous.
I can't get it to call an event in B4A when the method completes.
I know how to do it with Eclipse, since I use the BA object, and I've already created libraries in Eclipse for personal use. But I'm trying to learn how to relate events to Java in B4X. (#if java)
 
Top