Implement clean shutdown

- increase version number to 1.6.1
This commit is contained in:
Simon committed 2023-05-01 09:57:09 +01:00
1 parent ae567ebd9b
commit cb3000f57f
6 files changed
+49 -15

No files matched your search

@@ -67,7 +67,11 @@ import static android.system.Os.setenv;
private SurfaceView mView;
private SurfaceHolder mSurfaceHolder;
private long mNativeHandle;
public void shutdown() {
System.exit(0);
}
@Override protected void onCreate( Bundle icicle )
{
Log.v( TAG, "----------------------------------------------------------------" );
@@ -578,7 +582,7 @@ import static android.system.Os.setenv;
Log.v( TAG, "GLES3JNIActivity::onStart()" );
super.onStart();
GLES3JNILib.onStart( mNativeHandle );
GLES3JNILib.onStart( mNativeHandle, this );
}
@Override protected void onResume()
+1 -1
View File
@@ -10,7 +10,7 @@ public class GLES3JNILib
{
// Activity lifecycle
public static native long onCreate( Activity obj, String commandLineParams );
public static native void onStart( long handle );
public static native void onStart( long handle, Object obj );
public static native void onResume( long handle );
public static native void onPause( long handle );
public static native void onStop( long handle );