android-ndk

is it binary compatible for emdebian and android?

the Android ndk is hard to use for the old autoconf based code, so i employed scratchbox2/emdebian to have a complete build environment. can i build a shared library in emdebian (arch is armel) and then use it in android? ...

How to compile a static library using the Android NDK?

I'm trying to compile a static library to use on Android but I can't figure out how to compile it. The library uses standard libraries (stdio.h etc...) and libxml2. I am trying to compile using arm-eabi-gcc but I get the following error: /cygdrive/c/android-ndk-r4/build/platforms/android-8/arch-x86/usr/include/asm/posix_types.h:15:28: ...

CoreFoundation Lite on Linux and Android

I would like to use Apple's CoreFoundation library on linux and android. The source code is available here, but there is very little documentation on how to build it on Linux. As far as I could figure out, building is done through a script called BuildCFLite. I grepped for DEPLOYMENT_TARGET ./CFUtilities.c:#if DEPLOYMENT_TARGET_MACOSX ...

Building OpenSSL on Android NDK

Hi, I want to use DTLS (on OpenSSL) using JNI on Android 2.1/2.2. Can someone help me get started (tutorials, howto, pointers etc) with building OpenSSL for Android (2.1/2.2) using the Android NDK? Anything important that I should be aware of before doing it. Thanks. ...

Android NDK - Make 3.81 Issue

I'm new to the NDK. (using Windows) I have downloaded cygwin and the NDK. I have unzipped the NDK in C:\ When I run cygwin I change to the NDK directory and I run the command build/host-setup.sh But I get Error: could not find a valid GNU Make executable. I have downloaded GNU make 3.81 but still no luck, Do I have to put it in a s...

Android NDK r4 san-angeles problem

Hi All, I'm starting to learn the android NDK and I've instantly come up against a problem. I'e built the tool chain (which took a LOT longer than I was expecting!!) and I've compiled the C++ code with no problems and now I'm trying to build the java code. Instantly I come up against a problem. There is a file "main.xml" <?xml versi...

Getting hardware floating point with android NDK

Hi All, I've begun playing with the android NDK. One of the things I've just learnt is about creating an application.mk file to specify the armv7 abi. I'm building the san-angeles example with the following parameters. APP_MODULES := sanangeles APP_PROJECT_PATH := $(call my-dir)/../ APP_OPTIM := release APP_ABI ...

use NDK in android for OpenSSL using jni with Cygwin In windows

Hi, I want use OpenSSL in my application using jni with Android NDK but i unable to understand how can i do i don't exact process and even i don't have any sample code for that so any one can help me please send me a sample code or how to do this. I am waiting for reply. ...

How to build third party libraries with Android NDK

How can I compile third party libraries with the android NDK? I am compiling a wrapper which implements the JNI functions as a shared lib, which depends on another 3rd party lib (HTK). I don't know how to setup the makefile. The following does not work: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) include HTKLib/Android.mk LOCAL...

How can I check in code the Android version like 1.5 or 1.6

Hi all I need to check in code what Android release version is running currently on target device Can you supply code example Thanks ...

how to make c-highlight in eclipse ?

I have installed Android NDK and want to make eclipse highlight c-source. How ? ...

OpenGL ES canvas size

Ahoy, I'm working on an OpenGL ES based game for Android using the NDK. My application is targeted towards SDK 1.6 and above. I seem to be having a problem creating a canvas of the phones native size. My rendering is done through a native gameloop that uses OpenGL 1.0. I'm using the emulator and that gives me a 480x320 canvas -- this i...

How much is too much memory allocation in NDK?

The NDK download page notes that, "Typical good candidates for the NDK are self-contained, CPU-intensive operations that don't allocate much memory, such as signal processing, physics simulation, and so on." I came from a C background and was excited to try to use the NDK to operate most of my OpenGL ES functions and any native function...

Android app not running on emulator

[2010-06-15 12:01:37 - helloNDK]Android Launch! [2010-06-15 12:01:37 - helloNDK]adb is running normally. [2010-06-15 12:01:37 - helloNDK]Performing com.android.helloNDK.helloNDK activity launch [2010-06-15 12:01:37 - helloNDK]Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'my_avd' [2010-06-15 12:01...

How to use point sprite API in Android NDK

I want use point sprite (OpenGLES Extension) API in Android NDK(r4). right here int att[] = {0,0,1}; glPointParameterxv( GL_POINT_DISTANCE_ATTENUATION, att ); But, doesn't work it. ...

How To create a Simple NDK Program in Android NDK

Hi I am new to android Programming and NDK.Yet i am not clear with working in NDK.I just downloaded android ndk r4.If i want to develop appln using NDK,and i refered http://marakana.com/forums/android/android_examples/49.html for reference,But still not clear how to create the header file and implementation,I did nt have any previuos ...

Use Of Android NDK

Hi!!!! i am new for NDK. i want to know what is the benefit of native code in android . By this can we improve our application performance. and main thing exactly when we will use this native code. please clear it. and from where i can get more information............ ...

What is Cygwin and how to use it in relation in Android NDK

Hi I am new to android NDK Devlopment.I downloaded Android NDK 4 for windows.I read through the docs.But i am not clear with it. First thing is that,I want to develop the native file which may be c 0r c++.I think Using Cygwin will come to play.I dont have any idea or how to use cygwin .From the Docs i just read Cygwin is required for Wi...

surfaceflinger test program

Hi All, I want to write a native application in Android for testing surfaceflinger. Is there any simple program that shows how to create surface, register buffers and post buffers on Surfaceflinger. Many thanks in advance. Kind Regards -Durgesh O Mishra ...

Track opengl texture memory in Android

How do I track the memory used by OpenGL textures in Android? I understand the texture memory is on the Video RAM, but do they get swapped in with the RAM? If I call glGenTextures and do not call glDeleteTextures, how does it impact the memory usage of my current process? ...