Android Question How to work with .jar external library

Discussion in 'Android Questions' started by potduang, Aug 6, 2015.

  1. potduang

    potduang Member Licensed User


    First, I've to say sorry for my english ability.
    I'm new in working with external .jar file. May anyone can guide me how to work with it?

    Suppose I've a .jar file (for example CRC.jar). It contains CRC16.class and CRC32.class.
    In CRC16.class, there is a function

    public static short calcrc16(byte[] data, int len)

    How can I call and get result from calcrc16?

    I've added
    #AdditionalJar: CRC
    in my test application. After that I added a sub

    Sub GetCRC16 As JavaObject
    Dim jo As JavaObject

    End Sub

    Please anyone guide me what to do next.

    Best Regards,
  2. Erel

    Erel Administrator Staff Member Licensed User

    Dim jo As JavaObject
    log(jo.RunMethod("calcrc16"Array (Array As Byte(1234), 4))
    DonManfred and potduang like this.
  3. potduang

    potduang Member Licensed User

    Thanks Erel, I will try.
  4. potduang

    potduang Member Licensed User

    Many Thanks Erel. I've just try and it's work correctly.
  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