Home > Back-end >  Using delphiXE5/6/7 developing android applications, how to call the third party SO library?
Using delphiXE5/6/7 developing android applications, how to call the third party SO library?

Time:09-23

I have hikvision android version of the so file and jar file
I like to write a unit file
 
The unit HCNetSDKUnit;

Interface

Const
NET_DVR_API='libhcnetsdk. So;

//initialization and release
The function NET_DVR_Init () : a BOOLean; Cdecl; External NET_DVR_API;
The function NET_DVR_Cleanup () : a BOOLean; Cdecl; External NET_DVR_API;

Implementation

Initialization

Finalization

End.

Then add the unit in the project file, whether defined function called
As long as there is joining units in the project file, run in the simulator, and mobile compiled
when the apkPrompts the [I'm sorry, "XXXXX" has stopped running], just delete the files in projects, can be normal to run
O should be how to correctly using the third party SO libraries?

CodePudding user response:

I also want to know how to get ah, the great god let us know,

CodePudding user response:

Development of the android or the original JAVA! Many hardware and related items are with special libraries,
  • Related