My group and I are trying to build an Android app for our Hackathon. Right now they're building an app in native Android while I'm building an app using libGDX that launches through the DesktopLauncher. (App is Java based)
I know I can change where the libGDX game launches from by changing the gradle scripts (so I can have the app launch from Android instead of Desktop later on).
Is there a way to integrate my libGDX game into the native Android app my teammates are building? Example: I want my game to pop up and start run when a button in my teammate's part of the application (that's completely built in native Android) is clicked.
Sorry if this stupid question, I'm relatively new to Android development and the libGDX library (followed a tutorial for Android and made one project using libGDX).
I ran into issues because the libgdx examples were not updated to work with the latest Android SDK AppCompatActivity.
You might take a look at this example: https://github.com/SiliconLabs/thunderboard-android
Specially
DemoMotionGdxAdapter loads the models and renders the scene (this is where you game will reside) https://github.com/SiliconLabs/thunderboard-android/blob/master/app/src/main/java/com/silabs/thunderboard/demos/ui/DemoMotionGdxAdapter.java
GdxDemoActivity is updated to work with AppCompatActivity as its base class. https://github.com/SiliconLabs/thunderboard-android/blob/master/app/src/main/java/com/silabs/thunderboard/demos/ui/GdxDemoActivity.java
DemoMotionActivity includes examples of how to interact with the game (button click triggers events in game) https://github.com/SiliconLabs/thunderboard-android/blob/master/app/src/main/java/com/silabs/thunderboard/demos/ui/DemoMotionActivity.java#L234
HTH
Don't forget to include the jars from https://github.com/SiliconLabs/thunderboard-android/tree/master/app/libs in your project.