我可以做一个与Android,而本地C ++应用程序?做一个、应用程序、Android

由网友(很是差勁)分享简介:我感兴趣的以下特点:编写Android电子市场的应用程序是用C完全写入++(实际上是现有产品的端口)。使用快速的屏幕缓冲像素推动(或者更确切地说,使用OpenGL ES这个)。在抓取用户的输入,并直接到C ++ code。是合法的写市场这样的应用程序?是市场的政策在某种程度上严格到这样的事情?Is it lega...

我感兴趣的以下特点:

编写Android电子市场的应用程序是用C完全写入++(实际上是现有产品的端口)。 使用快速的屏幕缓冲像素推动(或者更确切地说,使用OpenGL ES这个)。 在抓取用户的输入,并直接到C ++ code。

是合法的写市场这样的应用程序?是市场的政策在某种程度上严格到这样的事情?

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

推荐答案

随着NDK R5采用Android 2.3(姜饼),这是可能的,但我认为只支持当地人的应用程序必须姜饼对他们的设备。

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.

从天然活性样本:

Android SDK提供了一个辅助类,NativeActivity的,这可以让你完全写   当地的活动。与天然的活性,有可能写一个完全机应用程序。   NativeActivity的处理Android框架和您之间的通信   本土code,所以你不必继承它或调用它的方法。所有你需要做的就是声明   您的应用程序是在本地的Andr​​oidManifest.xml文件,并开始创建您的母语   应用程序。

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.

阅读全文

相关推荐

最新文章