Building For Android TV
Use the Android TV target when you are ready to validate the shared Hosanna app on Android TV emulator or hardware. The target uses the shared view, AppConfig, fragment, input, and focus model while Android Studio handles device execution and packaging.
Prerequisites
- Android Studio with the Android SDK installed.
- An Android TV emulator image or physical Android TV device.
- Access to the licensed Hosanna framework sources and tooling for the project.
- The project dependencies installed with
npm install.
Build And Run
- Generate Hosanna structs and project metadata if your project does not do this automatically:
npm run generate - Open the Android platform project in Android Studio.
- Select an Android TV emulator or device.
- Build and run from Android Studio or the configured launch target.
Debugging
- Use Web for fast iteration before moving to Android TV.
- Use Android Studio Logcat and debugger for native logs, lifecycle issues, and packaging errors.
- Validate DPAD focus, Back behavior, text input, networking, media playback, lifecycle resume, and performance.
See Android TV and Native Development Android TV for more detail.