summaryrefslogtreecommitdiffstats
path: root/src/jogamp/opencl/os/android/JoclVersionActivityLauncher.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogamp/opencl/os/android/JoclVersionActivityLauncher.java')
-rw-r--r--src/jogamp/opencl/os/android/JoclVersionActivityLauncher.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/jogamp/opencl/os/android/JoclVersionActivityLauncher.java b/src/jogamp/opencl/os/android/JoclVersionActivityLauncher.java
new file mode 100644
index 00000000..4080250d
--- /dev/null
+++ b/src/jogamp/opencl/os/android/JoclVersionActivityLauncher.java
@@ -0,0 +1,21 @@
+package jogamp.opencl.os.android;
+
+import android.app.Activity;
+import android.content.Intent;
+import android.net.Uri;
+import android.os.Bundle;
+import android.util.Log;
+
+public class JoclVersionActivityLauncher extends Activity {
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+
+ final Uri uri = Uri.parse("launch://jogamp.org/jogamp.opencl.os.android.JoclVersionActivity?sys=com.jogamp.common&sys=javax.media.opengl&sys=com.jogamp.opencl&pkg=com.jogamp.opencl.test&jogamp.debug=all&jocl.debug=all");
+ final Intent intent = new Intent("org.jogamp.launcher.action.LAUNCH_ACTIVITY_NORMAL", uri);
+ Log.d(getClass().getSimpleName(), "Launching Activity: "+intent);
+ startActivity (intent);
+
+ finish(); // done
+ }
+}