CGI-Player Launcher

System Requirements
This document mandates adherence to the Android Application Development Environment
Setup Guide,Guide, as a prerequisite for system compliance.
ByThe followingproject theserequirements steps,

Project Structure
CGI-Player Launcher is usinguses the Android Gradle Plugin Versionversion 7.2.1 and Gradle version 7.3.3.
Building and Running the Android Application
To be able to build and run the Android Application,application, perform the following steps must be done.
steps:
1.
Open a Command Prompt in the root of CGI Studio root directory (e.g., “...\cgistudio”) and type: “
subst
x: .”
and
Press enter.enter. The CGI root is now available under the subst "x"X: drive in Windows Explorer.
2.
Launch Android Studio fromand “open the project located at:
X:\cgi_studio_apps\References\Android\AndroidCgiPlayerLauncher”.AndroidCgiPlayerLauncher
3. Configure local.properties:
- Open
the “local.properties.sample”sample fileand changefrom the“USERNAME”root of the Android application.
architecture

the Target ABI block.
Note: If the SDK or NDK paths do not exist, Android Studio willmay reset the “local.properties” againproperties after tryingsyncing tothe Sync Projectproject with Gradle Files.files.
4. sureCreate an Android asset
Run the JDKfollowing isbatch setfile:
X:\bin\SceneComposer\SceneComposer_Android_OpenGLES30.bat
11
Create- Choose an asset
withtemplateCGI Studio for Android by running “X:\bin\SceneComposer\SceneComposer_Android_OpenGLES30.bat” and choosing(e.g., “3D Basic”) and save this as Test.bininto - If from sdcard: to the /sdcard/ directory of the
target/target or emulator.ForIntheAndroidemulatorStudio, this can be done in the "Device Explorer" of the target or emulator.
X:\cgi_studio_apps\References\Android\AndroidCgiPlayerLauncher\app\src\main\assets
5. Build variant:
6. Run the application:
6.1 Launching an asset via ADB (command-line)
The asset path can be found in the CGI-Player Launcher app. Replace the asset path and asset filename in the command. Use this method to start the CGI-Player Launcher and open a selected asset from cmd:
adb shell am start -n at.cgistudio.player/.presentation.nativeview.NativeViewActivity -e extra_asset_path "/storage/emulated/0/3151_3DGS.bin" -e extra_asset_name "3151_3DGS.bin" -e extra_load_from_assets false -e extra_wait_for_connection false
7. APK
After the application is running, the current built APK can be found in the build directory. This can located by opening [Build | Analyze APK]. The usual directory would be:
X:\cgi_studio_apps\References\Android\AndroidCgiPlayerLauncher\app\build\intermediates\apk\
If the build was for release, the APK will be signed.
Troubleshooting
- If encountering any issues during the setup, refer to the official documentation for Android Studio,
CMake, and NDK for troubleshooting steps. If
Platform Tests
- Google Pixel C, ARM Cortex A57, Android 8.1.0, API 27
- Huawei MediaPad M5, ARM Cortex A73, Android 9, EMUI 9.1.0, API28
- Emulator Pixel 2, x86_64, Android 6, API 23 (Without Play/APIs)
- Emulator Medium Phone, x86_64, Android 9, API 28 (Without Play/APIs)
- Emulator Pixel 2, x86, Android 9, API 28 (Without Play/APIs)
- Emulator Google Pixel Tablet, x86_64, Android 14.0, API 34