Tag: android-ndk

Set Build path in Eclipse for ndk program

This error was shown when I build a android application program in Eclipse: 14:43:33 **** Incremental Build of configuration Default for project com.***.NDKDemo **** ndk-build all Cannot run program “ndk-build”: Unknown reason Error: Program “ndk-build” not found in PATH PATH=[/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games] 14:43:33 Build Finished (took 16ms) Please give me a solution to include the build path […]

Android OpenAL?

Has anyone built OpenAL for the Android, or found the shared library for it on the system? This seems like an obvious need for a game of any kind, yet there’s no resources out there for it. It seems the Android java sound library can’t do pitch changes from what I can tell, so there […]

How to create an Android RFCOMM socket without any input from the user?

Here’s the scenario: I need to write an application for Android to create a RFCOMM socket to a PC with a Bluetooth dongle (I’m going to write the server too). My requirement is that the user doesn’t have to pair device manually. Actually, with a big hack, I’m using the createInsecureRfcommSocket. A little scenario: I’ve […]

Android App Crashes Suddenly while running?

What my App does ? The App I am developing is a typical client server App which talks to a windows server using Wifi. The Application has multiple Activities and really has heavy memory and CPU requirements i.e native calls for speex encoding / decoding. What my Problem is ? The problem is the Application […]

How to display available branches in Android source tree?

Following directions on Android’s main website to pull down sources, I’m looking at this command to initialize repo for the cupcake branch: repo init -u git://android.git.kernel.org/platform/manifest.git -b cupcake How can I view all available branches besides cupcake, i.e eclair, donut, etc…?

Android Nexus 7 Jelly Bean: startPreview/takePicture calling getCameraStereoMode logs an error

I just got a Nexus 7 I’m trying to port some code to. The following line works with no problem on a Xoom running Ice Cream: mCamera.startPreview(); It also works correctly on the Nexus 7, but it logs errors: E/NvOmxCamera( 126): OMX_ERRORTYPE android::NvOmxCamera::getCameraStereoMode(NvxComponent*, NvOmxCameraUserStereoMode&): Error: invalid NVX mode 0. E/NvOmxCamera( 126): OMX_ERRORTYPE android::NvOmxCamera::getCameraStereoModeAndCaptureInfo(NvxComponent*, NvOmxCameraUserStereoMode&, NVX_STEREOCAPTUREINFO&): […]

How can I use BitmapRegionDecoder code in android 2.2.2 (Froyo)?

I was reading an answer to a different question on SO, in which @RomainGuy commented that one could (please correct me if I’m paraphrasing incorrectly) back-port code from later versions of android to earlier versions. Specifically, I am interested in back-porting code for BitmapRegionDecoder from Android version 2.3.3 (Gingerbread) to version 2.2.2 (Froyo). I would […]

How to use NDK? Starting with 'hello world' app

I would like to see a ‘Hello world’ program written in C/C++ but made to run on Android. I know this is possible by using NDK and JNI calls. But not able to make it work. No guides online are helpful. Need to know to to get started. I am developing on Windows 7 machine […]

uSTL or STLPort for Android?

I’m working with the Android NDK, and since it does not currently support the STL, I was wondering if there are any brilliant people out there who have had success with this, or know which is better suited for the Android platform: uSTL or STLPort. EDIT: Looks like another option may be CrystaX .NET. From […]

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: error: posix_types_64.h: No such file or directory How do I get this […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.