Application pause/resume fix for Android sample NativeActivity.

(cherry picked from commit 7da3e98dfd)
This commit is contained in:
Alexander Smorkalov 2014-02-13 16:47:02 +04:00
parent f40ffe4763
commit 25159d8e81

View File

@ -21,6 +21,7 @@ public class CvNativeActivity extends Activity {
System.loadLibrary("native_activity");
Intent intent = new Intent(CvNativeActivity.this, android.app.NativeActivity.class);
CvNativeActivity.this.startActivity(intent);
CvNativeActivity.this.finish();
} break;
default:
{
@ -34,7 +35,7 @@ public class CvNativeActivity extends Activity {
Log.i(TAG, "Instantiated new " + this.getClass());
}
@Override
@Override
public void onResume()
{
super.onResume();