Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Update android default project  (Read 5269 times)

0 Members and 1 Guest are viewing this topic.

AlexAUT

  • Sr. Member
  • ****
  • Posts: 396
    • View Profile
Update android default project
« on: September 19, 2017, 11:10:40 pm »
The android example still uses the old build system (ADT), because at the time support for the NDK in Android Studio was non existent. Maybe even Android Studio was not released back then ???

Nowadays Android studio has finally integrated good working support for the NDK, via Gradle+Cmake. So we should think about updating the example, or at least offer and android studio project. Because currently it is not simple, easy or fast for a person which does not know something about the build system to get SFML working under android.

There is already a nice template, which works out of the box without any configuration needed (with this PR).

SFML Thread:
https://en.sfml-dev.org/forums/index.php?topic=22445.0
Github:
https://github.com/Alia5/SFML_AndroidStudio


For the future it would also be possible to build SFML inside Android Studio. So the user does only need to copy his code into the example and everything will be setup.


AlexAUT

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11016
    • View Profile
    • development blog
    • Email
Re: Update android default project
« Reply #1 on: January 10, 2018, 07:59:27 pm »
I like it. :)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

AlexAUT

  • Sr. Member
  • ****
  • Posts: 396
    • View Profile
Re: Update android default project
« Reply #2 on: February 02, 2018, 08:57:41 pm »
I got already four personal messages about the android studio project  ::). I can do a PR which updates the android example and also write a "SFML for Android" tutorial for the webpage if we can agree on switching to android studio. I just do not want to do it and then it gets rejected ;)

It would definitly make the progress on android much more smooth.

AlexAUT

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: Update android default project
« Reply #3 on: February 06, 2018, 07:51:32 pm »
Maybe you missed this pull request.

It's still work in progress and has a few issues (such as linking the shared STL with the activity and Audio not working), but it's a start and also includes Gradle build files, which Android Studio should be able to work with. On the plus side it makes compiling SFML even easier than before. :)