¿Documentos de referencia de la API del NDK? [cerrado]

I'm looking for reference documentation for the NDK libraries, anyone know where to find them? not java APIs. I can't find any in the NDK directory or online.

preguntado el 09 de enero de 11 a las 10:01

@Harry Joy They are not API reference docs. -

While looking on net i find this: "you can find the documentation only in the downloadable NDK package." Read more: brighthub.com/mobile/google-android/articles/… -

@Harry Joy that is documentation about NDK, how to use, etc, I've read most of those already, there is no API reference docs in there. -

I don't think any api reference doc for NDK is available so you have to live with what you get in NDK [Docs] itself. :-( -

7 Respuestas

Yes the API documentation of the NDK is very sparse. Most of the docmentation is in the docs folder of the NDK itself. Also the examples are helpful.

Try to read through the "standard" JNI documentation. (http://java.sun.com/docs/books/jni/) The Android NDK is basically just JNI. But the Android ndk does not need the special header magic if you name your function accordingly.

por ejemplo:

a java class:

 package com.example.foo;

 class Bar {
     native void jnistuff();

where you call jnistuff the NDK will look for the method:

void Java_com_example_foo_Bar_jnistuff(JNIEnv* env, jobject *self)

and automatically call it. Do not forget "extern C" if you use C++

Respondido el 10 de enero de 11 a las 03:01

The best documentation for NDK libraries is the folder with corresponding headers $NDK/platforms/android-n/arch-arm/usr/include. Do not overlook it.

Como han señalado otros, $NDK/docs y http://developer.android.com/sdk/ndk/overview.html También son esenciales.

Respondido el 14 de enero de 12 a las 00:01

I have been exploring the NDK and trying to learn about it and I found the following page to be helpful. It may not be exactly what the original question was asking for, but it may be a helpful resource nonetheless.


Respondido 16 ago 12, 16:08

Have you seen the file called STABLE_APIS.html in the NDK docs directory? That should give you a good start. Most Linux features (for example pthreads, C library) are available. The newest NDK also includes STL and other features.

Respondido el 10 de enero de 11 a las 00:01

NDK is just a build tool for android to build APP with JNI. If you have questions about JNI API, there are JNI document in its official page.

Respondido el 16 de enero de 11 a las 10:01

if i'm not mistaken there is not refference API as the JDK has, you got some documentation and explanation in the docs directory in the NDK itself, it's one of the greatest drawbacks of the NDK if you ask me...


Respondido el 09 de enero de 11 a las 14:01

I fear, the only way to get a complete reference of all JNI interface funktions is to study the original android C source code inside the folder /AndroidFrameworksBase/...whatsoever.../jni (subfolders).

By studying this, you will actually know how to call all the published interface functions for usage with the NDK.

The NDK is merely a wrapper, a skeleton and has no Android API documentation for C/C++ at all. However, it isn't easy to find those files for all the available Android versions online.

Respondido 12 Oct 12, 03:10

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.