Welcome! Log In Create A New Profile

Advanced

[WDM24] How to import external library to Android

Posted by Mujahid 
[WDM24] How to import external library to Android
November 27, 2019 03:57PM
Hi All,

In Windows platform im using hInst = LoadDLL("MyDLL.DLL") and call it using CallDLL32("MyDLL", "FunctionA", par1, par2).

How to do the same concept for android?
1. Load the external library libZAandroid.so
2. And call it back

Thanks a lot.

Regards,
Mujahid
Re: [WDM24] How to import external library to Android
November 28, 2019 07:54AM
Hello. A .so library must be loaded using Java code. That's not what WM does for you.

static {
System.loadLibrary("<library name>");
}

Can you call your library from Java? Then you must include the library in the generation process. You must also create Java functions in your application (such as Global Procedures) and interact with the library from those functions.

[doc.windev.com]

Ruben
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: