How to Migrate a Payment Application to Q2Premium: Difference between revisions

From wizarPOS
No edit summary
No edit summary
Line 1: Line 1:
# Change how the so file dir is got:
# Get native library files:
Use getApplicationInfo().nativeLibraryDir instead of path concatenation,for example in EMVKernel invoking, when get the path of libEMVKernal.so, code should change to
 
  tmpEmvLibDir = this.getApplicationInfo().nativeLibraryDir + "/libEMVKernal.so";
If an application contains such native library files, the path to the native library can be obtained using this statement.
 
getApplicationInfo().nativeLibraryDir+"/xxx.so".
 
for example in EMVKernel invoking, when get the path of libEMVKernal.so, snippet code is:
<syntaxhighlight lang="java" line='line'>
tmpEmvLibDir = this.getApplicationInfo().nativeLibraryDir + "/libEMVKernal.so";
</syntaxhighlight >

Revision as of 01:49, 12 May 2023

  1. Get native library files:

If an application contains such native library files, the path to the native library can be obtained using this statement.

getApplicationInfo().nativeLibraryDir+"/xxx.so".

for example in EMVKernel invoking, when get the path of libEMVKernal.so, snippet code is:

tmpEmvLibDir = this.getApplicationInfo().nativeLibraryDir + "/libEMVKernal.so";