Add archives XML Natives Android in Codename

14 views
Skip to first unread message

josue

unread,
Oct 23, 2018, 2:23:18 PM10/23/18
to CodenameOne Discussions
Hi

I am trying to use a native view of Android, but this view is drawn with an XML, I can embed the class .Java, but when trying to embed the XML I can not compile the app with CodeName

 Is there any way to add the XML file to the codename one project? how to place the XML in some special directory

Shai Almog

unread,
Oct 24, 2018, 12:24:02 AM10/24/18
to CodenameOne Discussions
Hi,
the best approach to do this is creating an AAR in Android and exposing an API. Then using that AAR from the native code. You can just place the AAR file in the native/android directory to expose it to the Android native code.
Reply all
Reply to author
Forward
0 new messages