Skip to content
waxspin edited this page Jul 7, 2011 · 6 revisions

Welcome to the NDK_Demo wiki! Here you can find the git repo of the demo I presented at the Ji-V Hack event on Saturday, June 25th. For now, you can at least pull down this source code and get started if you have the NDK and related tools set up on your machine.

Required tools

Android SDK

Android NDK

Cygwin

Java JDK (not just JRE)

Eclipse IDE

Note: You will either need to get the C/C++ flavor of Eclipse, or install the CDT package to get C/C++ editing in the IDE for the NDK code you will write. Additionally, follow the Android dev site's instructions for setting up the SDK, which will include installing the Android plugin for Eclipse, etc. through the Eclipse IDE once it's set up. Of course, you'll also probably need an Android phone, as I haven't tested the audio hardware stuff with the emulator (although this MAY work, but will likely be slow on the emulator, so it might not work well anyway)

Known issues

The threads in this demo application are not correctly able to restart currently, unless we make sure they are completely gone by the next time the main activity loads, so for the moment this is simply hacked via calling finish() on the main activity at pause and stop.

Support

Feel free to message me if you have questions or would like assistance--I am often busy with lots of coding projects at work and in the open source community but I will attempt to respond to messages within a day or so.

Clone this wiki locally