[英]Android NDK overriding methods
I have 2 NDK libraries ( .so
files ) in my android project and there is a method in the first library that is also called (used) in the first library and I want the second library to override the called (used) method found in the first library. 我的Android项目中有2个NDK库( .so
文件),第一个库中有一个方法在第一个库中也称为(使用),我希望第二个库覆盖在中找到的调用(已使用)方法第一个图书馆。 Is it possible to just have the same name and parameters and load the second library after the first like 是否可以具有相同的名称和参数并在第一个赞之后加载第二个库
System.load(first);
System.load(second);
Will this override the first method or do I have to do something else? 这会覆盖第一种方法还是我必须做其他事情? If so, please specify. 如果是这样,请指定。 Thanks in advance for your time. 在此先感谢您的时间。
Once a symbol has been resolved (by System.load
) it will not be changed. 一旦符号被解析(通过System.load
),它将不会被更改。 The definition loaded from first
will be used. 将使用从first
加载的定义。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.