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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.