load .so at AppActivity.java

This commit is contained in:
halx99 2020-02-04 19:22:11 +08:00
parent 1b33d88416
commit a40c81e984
4 changed files with 16 additions and 1 deletions

View File

@ -29,6 +29,10 @@ import android.os.Bundle;
import org.cocos2dx.lib.Cocos2dxActivity;
public class AppActivity extends Cocos2dxActivity {
static {
System.loadLibrary("mpg123");
System.loadLibrary("openal");
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.setEnableVirtualButton(false);

View File

@ -29,6 +29,10 @@ import android.os.Bundle;
import org.cocos2dx.lib.Cocos2dxActivity;
public class AppActivity extends Cocos2dxActivity {
static {
System.loadLibrary("mpg123");
System.loadLibrary("openal");
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.setEnableVirtualButton(false);

View File

@ -30,6 +30,10 @@ import android.os.Bundle;
import org.cocos2dx.lib.Cocos2dxActivity;
public class AppActivity extends Cocos2dxActivity {
static {
System.loadLibrary("mpg123");
System.loadLibrary("openal");
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.setEnableVirtualButton(false);

View File

@ -30,7 +30,10 @@ import org.cocos2dx.lib.Cocos2dxActivity;
import org.cocos2dx.lib.Cocos2dxGLSurfaceView;
public class AppActivity extends Cocos2dxActivity{
static {
System.loadLibrary("mpg123");
System.loadLibrary("openal");
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.setEnableVirtualButton(false);