是否有讨论的Andr​​oid NDK API中稍微体面的方式有什么好的资源? [英] Is there any good resource that discusses Android NDK API in a somewhat decent manner?

查看:106
本文介绍了是否有讨论的Andr​​oid NDK API中稍微体面的方式有什么好的资源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我们都知道,现在的Andr​​oid的NDK缺少API的参考,但什么让我很沮丧最深的是,我不断发现在人们的code的事情,我从来没有见过的。一个例子是一个Android AssetManager传递给一个本机方法和用作这样:

So we all know by now that Android NDK is missing an API reference, but what frustrates me the most is that I keep finding things in people's code that I've never seen before. One example is an Android AssetManager passed to a native method and used as such:

AAssetManager* mgr = AAssetManager_fromJava(env, assetManager);

据cincludes两个文件:

It cincludes two files:

#include <android/asset_manager.h>
#include <android/asset_manager_jni.h>

这些都不是也是文档中提到的。

None of these is also mentioned in the documentation.

无论是 AAssetManager 也不 AAssetManager_fromJava Android的任何文件,我的知识被提及。有没有在那里我能找到的,实际上提到的所有这些Android特有的JNI的东西一个很好的教程什么地方?有至少他们的名单?

Neither AAssetManager nor AAssetManager_fromJava are mentioned in any Android document to my knowledge. Is there any place where I could find a good tutorial that actually mentions all of these Android-specific JNI things? Is there at least a list of them?

推荐答案

查看安装NDK的文档/文件夹,因为它确实是存在的。

See the docs/ folder of the ndk installation, as it really is there.

例如,grep的揭示了两个头文件你作为一个无证/未提及例如使用在一个被提及或两个以下文件的(NDK的支持此功能的版本)的:

For example, grep reveals that the two header files you use as an undocumented/unmentioned example are mentioned in one or both of the following files (of versions of the NDK which support this functionality):

docs/STABLE-APIS.html
docs/opensles/index.html

这篇关于是否有讨论的Andr​​oid NDK API中稍微体面的方式有什么好的资源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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