JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
NEWTRedSquareES2ActivityLauncher.java
Go to the documentation of this file.
1package com.jogamp.opengl.demos.android;
2
3import android.app.Activity;
4import android.content.Intent;
5import android.net.Uri;
6import android.os.Bundle;
7import android.util.Log;
8
9public class NEWTRedSquareES2ActivityLauncher extends Activity {
10 @Override
11 public void onCreate(final Bundle savedInstanceState) {
12 super.onCreate(savedInstanceState);
13
14 final Uri uri = Uri.parse("launch://jogamp.org/com.jogamp.opengl.test.android.NEWTRedSquareES2Activity?sys=com.jogamp.common&sys=com.jogamp.opengl&pkg=com.jogamp.opengl.test");
15 final Intent intent = new Intent("org.jogamp.launcher.action.LAUNCH_ACTIVITY_NORMAL", uri);
16 Log.d(getClass().getSimpleName(), "Launching Activity: "+intent);
17 startActivity (intent);
18
19 finish(); // done
20 }
21}