Android Question Additionaljar Emojicon

Discussion in 'Android Questions' started by jotaele, Apr 3, 2015.

  1. jotaele

    jotaele Member Licensed User

    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.


    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
    activity android:name="com.rockerhieu.emojicon" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
    "false" />)

    And this is the code simplified

    #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)
    Return jo.GetFieldJO("processBA")
    End Sub

    Sub Activity_Create(FirstTime As Boolean)
    Dim Ad As JavaObject
    Activity.AddView(Ad, 00200dip200dip)
    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: Apr 4, 2015
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice