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

Author Topic: Android Environment  (Read 4404 times)

0 Members and 1 Guest are viewing this topic.

Cmdu76

  • Full Member
  • ***
  • Posts: 194
    • View Profile
Android Environment
« on: February 23, 2016, 12:37:45 am »
Hi all,

I'm actually learning how to use SFML on Android.
I'm porting my Windows games to Android and now I use the sfml example and this tutorial : https://github.com/SFML/SFML/wiki/Tutorial:-Building-SFML-for-Android

I modify files like Android.mk and all others by trying to change as few things as possible.
To code, I use Notepad++ and commands : ndk-build && ant debug.

I want to know if there are another ways to do it easier ? Like a specialized IDE ?

I saw Android Studio but I can't find on the doc how to work with the NDK with it, and Google links that has solutions to this looks like "hacks".
There is also Eclipse, quite used with Java, but Android advises to use Android Studio.

Which one do you use ? / What would you recommand ?

And also, where can I find more content to learn about how to deal with files like Android.mk or maybe directly SFML tutorials for Android ?

Thanks in advance :)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10226
    • View Profile
    • development blog
    • Email
Android Environment
« Reply #1 on: February 23, 2016, 07:36:49 am »
The Android Studio is also Java oriented.
Some have been using Visual Studio 2015, but I have no idea how it works for Android. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

Cmdu76

  • Full Member
  • ***
  • Posts: 194
    • View Profile
Re: Android Environment
« Reply #2 on: February 23, 2016, 11:34:35 am »
Thank you for this quick answer.

I just googled it and it seems to be like what I want :)

Anyway, if some people can post their way to do it, it would be great to have few options to choose in.

ChronicRat

  • Sr. Member
  • ****
  • Posts: 327
  • C++ programmer
    • View Profile
    • My blog
Re: Android Environment
« Reply #3 on: February 24, 2016, 02:08:23 pm »
I have no idea how it works for Android. ;)
Perfectly. =)

1aam2am1

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Android Environment
« Reply #4 on: February 24, 2016, 06:14:40 pm »
Android studio and eclipse support NDK

ast

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Android Environment
« Reply #5 on: March 03, 2016, 09:50:34 pm »
You can install ndk to android studio. The selection is in menus or buttons, sdk manager if I recall correctly. After that it is possible to build ndk sample projects. This worked out out-of-the-box for me. But I do not know how to build sfml project with android studio or is it feasible at all. All the tutorials point to the standalone sdk and ndk. But the recent android documentation tells that android studio is the preferred way of building for android.

Best regards,
ast

 

anything