summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-04-03 18:57:28 +0200
committerSven Gothel <[email protected]>2012-04-03 18:57:28 +0200
commit081404e20ac6055244408c6a4a7e7c2089183983 (patch)
treec59876c7fb976af6acccf0e3c3c279633c24e2cf /make
parentc594cf1dc9f37dd1a6d861a1aa5426abbd082d60 (diff)
Add Android API 14 GLMediaPlayer demo: MovieSimple
Activity adds 2 NEWT GLWindow's in a ViewGroup, one main view and one small HUD view. Both GLWindow contain one GLEventListener playing the same stream using GLMediaPlayer one with no effect, one w/ a gradient color effect. The stream's URL is currently hardcoded 'file:///mnt/sdcard/Movies/BigBuckBunny_320x180.mp4'. Upper half of main window: - click start/pause video - drag rotate video Lower half of main window: - drag bwd/fwd in the stream (seek)
Diffstat (limited to 'make')
-rw-r--r--make/resources/android/AndroidManifest-test.xml10
-rw-r--r--make/resources/android/res-test/values/strings.xml2
-rwxr-xr-xmake/scripts/adb-power-alwayson.sh3
3 files changed, 15 insertions, 0 deletions
diff --git a/make/resources/android/AndroidManifest-test.xml b/make/resources/android/AndroidManifest-test.xml
index ca3089098..84256f6f4 100644
--- a/make/resources/android/AndroidManifest-test.xml
+++ b/make/resources/android/AndroidManifest-test.xml
@@ -95,6 +95,16 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
+ <activity android:name="com.jogamp.opengl.test.android.MovieSimpleActivityLauncher"
+ android:label="@string/activity_moviesimple_name"
+ android:description="@string/activity_moviesimple_descr"
+ android:theme="@android:style/Theme.NoDisplay"
+ >
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
</application>
</manifest>
diff --git a/make/resources/android/res-test/values/strings.xml b/make/resources/android/res-test/values/strings.xml
index d66f6e4d7..ea366a9f9 100644
--- a/make/resources/android/res-test/values/strings.xml
+++ b/make/resources/android/res-test/values/strings.xml
@@ -19,4 +19,6 @@
<string name="activity_graphui2p_descr">GraphUI 2-pass</string>
<string name="activity_elektro_name">Elektro</string>
<string name="activity_elektro_descr">Elektro</string>
+ <string name="activity_moviesimple_name">MovieSimple</string>
+ <string name="activity_moviesimple_descr">MovieSimple</string>
</resources>
diff --git a/make/scripts/adb-power-alwayson.sh b/make/scripts/adb-power-alwayson.sh
new file mode 100755
index 000000000..ec04064be
--- /dev/null
+++ b/make/scripts/adb-power-alwayson.sh
@@ -0,0 +1,3 @@
+sdir=`dirname $0`
+
+adb $* shell svc power stayon true