I tried for several days to create a wrapper for this library, but has been impossible for me for my lack of understanding about how to make a wrapper. And I
I decided to try #AdditionalJar , but I can not do it. I do not get how to create a view and add it to B4A project.
https://github.com/rockerhieu/emojicon
I compiled the library in eclipse and I copied the resulting .jar to additional libraries folder , as stated in the AdditionalJar example .
Then, when test the code and create the view, tells me that no constructor.
In Manifest
And this is the code simplified
The same applies to other views , except EmojiconTextView , which does have constructor, but not displayed.
I don't know if I can upload the compiled .jar of the library.
Can you give me a little help to continue?
I decided to try #AdditionalJar , but I can not do it. I do not get how to create a view and add it to B4A project.
https://github.com/rockerhieu/emojicon

I compiled the library in eclipse and I copied the resulting .jar to additional libraries folder , as stated in the AdditionalJar example .
Then, when test the code and create the view, tells me that no constructor.
In Manifest
B4X:
AddApplicationText(
<activity android:name="com.rockerhieu.emojicon" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:hardwareAccelerated="false" />)
And this is the code simplified
B4X:
'Emojicon
#AdditionalJar: Emojicon
Sub GetContext As JavaObject
Return GetBA.GetField("context")
End Sub
Sub GetBA As JavaObject
Dim jo As JavaObject
Dim cls As String = Me
cls = cls.SubString("class ".Length)
jo.InitializeStatic(cls)
Return jo.GetFieldJO("processBA")
End Sub
Sub Activity_Create(FirstTime As Boolean)
Dim Ad As JavaObject
Ad.InitializeNewInstance("com.rockerhieu.emojicon.EmojiconTextView", Array(GetContext))
Activity.AddView(Ad, 0, 0, 200dip, 200dip)
End Sub
The same applies to other views , except EmojiconTextView , which does have constructor, but not displayed.
I don't know if I can upload the compiled .jar of the library.
Can you give me a little help to continue?
Last edited: