Search code examples
javaandroidandroid-studiolibgdx

How to use a java function in libgdx


Hi, I wanna use a java (in AndroidLauncher) function in libgdx. Please help me.


Solution

  • Hopefully you're trying to call method of AndroidLauncher class which is in android module.

    You can use interfacing for your requirement.

    https://github.com/libgdx/libgdx/wiki/Interfacing-with-platform-specific-code