alximw / Android-native-examples

This project shows how to integrate C source code on an Android App using JNI (Java Native Interface).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android-native-examples

This project shows how to integrate C source code on an Android App using JNI (Java Native Interface).

In this case, I have implemented Fibonacci's and Factorial algorithms (Recursive and Iterative versions) using pure java and and C code in order to compare their performance. After several executions, it's posible to observe how the native alternative performs better (takes less time to finish the computation).

Based on the great tutorial on Android NDK by Aleksandar Gargenta (http://youtu.be/YvCRlJToCAg?list=PL0C9C46CAAB1CFB2B)

About

This project shows how to integrate C source code on an Android App using JNI (Java Native Interface).


Languages

Language:D 42.0%Language:Java 40.8%Language:C 14.0%Language:Makefile 3.2%