1
General discussions / SFML in Android Studio Example
« on: August 30, 2017, 07:30:51 pm »
Hi there,
somewhere around here floats a template to get SFML to work in AndroidStudio.
However, it is quite old, uses the experimental android gradle plugin and uses a dirty hack for SFMLActivity / SFML-Main
I just tried SFML on Android and pushed a new example project, using recent AndroidBuild tools with the newest ndk and AndroidStudio and the stable version of the Android Gradle plugin.
https://github.com/Alia5/SFML_AndroidStudio
I've also encountered a crash when the activity gets sent to the background using the home button, that I've also circumvented without modifying SFML at all.
It also shows how to combine Android-Java code with native-SFML code for things like google-play services etc.
It's still quite ugly and ways to go for a proper "example" project, it should serve as a starting-point, though.
I just wanted to share, I'm sure you can figure it out
somewhere around here floats a template to get SFML to work in AndroidStudio.
However, it is quite old, uses the experimental android gradle plugin and uses a dirty hack for SFMLActivity / SFML-Main
I just tried SFML on Android and pushed a new example project, using recent AndroidBuild tools with the newest ndk and AndroidStudio and the stable version of the Android Gradle plugin.
https://github.com/Alia5/SFML_AndroidStudio
I've also encountered a crash when the activity gets sent to the background using the home button, that I've also circumvented without modifying SFML at all.
It also shows how to combine Android-Java code with native-SFML code for things like google-play services etc.
It's still quite ugly and ways to go for a proper "example" project, it should serve as a starting-point, though.
I just wanted to share, I'm sure you can figure it out