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

Author Topic: A few questions regarding Android development  (Read 4733 times)

0 Members and 1 Guest are viewing this topic.

Cadisol87

  • Full Member
  • ***
  • Posts: 129
  • C++ Programmer
    • View Profile
A few questions regarding Android development
« on: November 01, 2014, 07:13:14 pm »
I want to start developing C++ Android applications using SFML.
Unfortunately, I don't have any experience developing apps for the Android platform, so I have a few(a bunch of) questions:
  • Do I have to modify my existent C++ code to compile it for android?
  • What else do I have to include to my project? (Maybe a manifest file?)
  • Can I use sort of an Android API in my C++ project? (For example to get the screen resolution of the device)
  • How do I compile my C++ code?
  • Can I continue using my favorite IDE?

If somebody has the time to answer my questions or just give me a link to a website or forum topic which helps me, I would really appreciate it! :)

Ixrec

  • Hero Member
  • *****
  • Posts: 1241
    • View Profile
    • Email
Re: A few questions regarding Android development
« Reply #1 on: November 01, 2014, 07:45:14 pm »
I still haven't gotten around to trying it myself so I can't give any detailed advice, but I do remember seeing the SFML team create these two potentially useful things:

https://github.com/SFML/SFML/wiki/Tutorial:-Building-SFML-for-Android

https://github.com/SFML/SFML/tree/master/examples/android

ChronicRat

  • Sr. Member
  • ****
  • Posts: 327
  • C++ programmer
    • View Profile
    • My blog
Re: A few questions regarding Android development
« Reply #2 on: November 02, 2014, 06:56:32 pm »
  • Can I continue using my favorite IDE?
I tried SFML Android on Eclipse, Code::Blocks and VS2013. The best (for me) is VS + vs-android + visualgdb
visualGDB is commercial but it is worth the money. I'll buy it someday. Note, that using of C::B and VS+vs-android require pretty good knowledge of cross-compiling. It does not use "ndk-build".
« Last Edit: November 22, 2014, 12:44:34 pm by ChronicRat »

Cadisol87

  • Full Member
  • ***
  • Posts: 129
  • C++ Programmer
    • View Profile
Re: A few questions regarding Android development
« Reply #3 on: November 02, 2014, 08:43:35 pm »
I still haven't gotten around to trying it myself so I can't give any detailed advice, but I do remember seeing the SFML team create these two potentially useful things:

https://github.com/SFML/SFML/wiki/Tutorial:-Building-SFML-for-Android

https://github.com/SFML/SFML/tree/master/examples/android

Thanks for those links! :)

I tried SFML Android on Eclipse, Code::Blocks and VS2013. The best (for me) is VS + vs-android + visualgdb
visualGDB is commercial but it is worth the money. I'll buy it someday. Note, that using of C::B and VS+vs-android require pretty good knowledge of cross-compiling. It does not use "ndk-build".
Hmm... I'd like to stay with C::B, but If it requires a good knowledge of cross-compiling I guess I will have to switch to Eclipse for my Android projects :D

ChronicRat

  • Sr. Member
  • ****
  • Posts: 327
  • C++ programmer
    • View Profile
    • My blog
Re: A few questions regarding Android development
« Reply #4 on: November 03, 2014, 09:44:09 am »
C::B is the hardest way. =) There are no ready-made solutions at all.
« Last Edit: November 22, 2014, 12:44:22 pm by ChronicRat »

ChronicRat

  • Sr. Member
  • ****
  • Posts: 327
  • C++ programmer
    • View Profile
    • My blog
Re: A few questions regarding Android development
« Reply #5 on: November 22, 2014, 12:43:56 pm »
Situation has been changed absolutely.
VS 2013 Community Edition + Tegra Android Development Pack = The best! May be release of VS2015 will change this again.