Home > Mobile >  The small white SO call for help
The small white SO call for help

Time:10-15

I got the other APP SO file, also know the invoke method, now want to put him SO file and call in your APP, this can be achieved?

CodePudding user response:

Ok, write the same classpath Java native methods, the name of the parameter on the corresponding line

CodePudding user response:

You need to create a directory in your project and the name of the class and method names consistent TestA, then call you in the other logic TestA. GetContent (" XXX ")
Examples are as follows:
 
Package com. The extend. The demo;

Public class TestA {
The static {
System. LoadLibrary (" XXX ");
}
Public static native String getContent (String XXX);
}
  • Related