Fixed regression in Android Tutorial2 initialization.

pull/24600/head
Alexander Smorkalov 12 months ago
parent e9f35610a5
commit 88d3e7a7ba
  1. 3
      samples/android/tutorial-2-mixedprocessing/src/org/opencv/samples/tutorial2/Tutorial2Activity.java

@ -57,6 +57,9 @@ public class Tutorial2Activity extends CameraActivity implements CvCameraViewLis
return;
}
// Load native library after(!) OpenCV initialization
System.loadLibrary("mixed_sample");
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
setContentView(R.layout.tutorial2_surface_view);

Loading…
Cancel
Save