我可以做一个与Android,而本地C ++应用程序? [英] Can I make a rather native C++ app with Android?

查看:124
本文介绍了我可以做一个与Android,而本地C ++应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我感兴趣的以下特点:

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

这篇关于我可以做一个与Android,而本地C ++应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆