androidc++sdkgoogle-playmarmalade

How difficult is it to port a C++ game to Google Play using Android SDK (or Marmalade, etc)


I'm currently developing a game in C++/SFML and I understand that Google Play games are typically C or Java but it is possible to make an "app" (not necessarily a game??) for Google Play that is written in C++. I understand to do so you must use an Android SDK (i'm not exactly sure how an SDK works at this point in time) or a similar software such as Marmalade must be used in conjunction with the c++ code in order to make it run on Android. Two questions:

1) Are there elements of c++ code (such as pointers) that can not be ported to Google Play / Android using Android SDK?

2) How difficult is it to port c++ code to Google Play / Android with Android SDK or similar software?

Thanks in advance


Solution

  • You can compile C++ on Android using the NDK.

    As for SFML, it apparently isn't available for Android 'yet':

    With SFML, your application can compile and run out of the box on the most common operating systems: Windows, Linux, Mac OS X and soon Android & iOS.With SFML, your application can compile and run out of the box on the most common operating systems: Windows, Linux, Mac OS X and soon Android & iOS.

    As for how hard it will be to port - obviously it's an opinion, but in my experience Android native development is considerably more difficult than Android JavaVM or desktop development.