Calling Java method from native code (Native Interface)

9 views
Skip to first unread message

P5music

unread,
Aug 28, 2020, 8:10:15 AM8/28/20
to CodenameOne Discussions
(Codename One) I would like to know if it is possible to call a method that is in my application from the native code as it is possible to call a native method from Java code.
I am asking this because the example code for calling voice input natively seems to have a sort of recurring event that provides results while the user is speaking.
Thanks in advance

Shai Almog

unread,
Aug 29, 2020, 1:49:27 AM8/29/20
to CodenameOne Discussions
Calling an arbitrary method in Java is hard. See the callback section in the developer guide for samples of invoking a static callback which is slightly simpler.
Reply all
Reply to author
Forward
0 new messages