Can I make a rather native C++ app with Android?

Hedin picture Hedin · Feb 20, 2010 · Viewed 12.5k times · Source

I'm interested in the following features:

  1. Writing an app for Android Market that is written completely in C++ (a port of existing product actually).
  2. Use fast screen-buffer pixel pushing (or rather using OpenGL ES for this).
  3. Grab user input and direct it to C++ code.

Is it legal to write such an app for Market? Is Market policy somehow strict to such things?

Answer

tonylo picture tonylo · Dec 16, 2010

As of NDK r5 with Android 2.3 (Gingerbread) this is possible, although I assume only devices to support natives apps must have Gingerbread on them.

From the native-activity sample:

The Android SDK provides a helper class, NativeActivity, that allows you to write a completely native activity. With a native activity, it is possible to write a completely native application. NativeActivity handles the communication between the Android framework and your native code, so you do not have to subclass it or call its methods. All you need to do is declare your application to be native in your AndroidManifest.xml file and begin creating your native application.