Login  Register

Re: Recreating Jogl2 Android demo projects in Eclipse

Posted by Sven Gothel on Nov 21, 2012; 9:33am
URL: https://forum.jogamp.org/Recreating-Jogl2-Android-demo-projects-in-Eclipse-tp4027079p4027136.html

On 11/21/2012 09:06 AM, asambol [via jogamp] wrote:

>>> 2. I created a new Android project in Eclipse, inside package my.package. I
>>> added your classes NEWTRedSquareES2Activity and
>>> NEWTRedSquareES2ActivityLauncher to my package, and of course, the
>>> RedSquareES2 class.
>>
>> So it still reads: 'class NEWTGearsES2ActivityLauncher extends
> LauncherUtil.BaseActivityLauncher' ?
>
> Nope, the original GearsES2 launcher doesn't extend BaseActivityLauncher
> either, but it still works from your apk:
> http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/android/NEWTRedSquareES2ActivityLauncher.java;h=96299e873651dce5dc2b99f7b6c5f94036ece402;hb=HEAD
If you use the launcher method, you must kickstart the launcher activity,
which will spawn-off our launcher while passing the demo activity.
See another updated description:
  <http://jogamp.org/git/?p=gluegen.git;a=commit;h=0cfc7847c58b51c9a26b50d905b592d1fc4c8578>

If you don't use the launcher method, you can start the demo activity right away - ofc.
Note that to do so, you have to create one big APK archive containing the Android gluegen
and jogl JARs, while maintaining the assets folders w/ native libraries!
To do so - you can either use our gluegen ant build macro for AAPT, or do your own recipe.
Please have a look at our gluegen-rt and jogl APK files and how assets [w/ native libs] are being laid out.

~Sven



signature.asc (909 bytes) Download Attachment