porting compiling lame encoder to Android ARM arch using Android NDK
I was looking for a mp3 encoding application in Android Market,
and found very few, the reason I think Android doesn’t support mp3
encoding is because mp3 is patented technology. Another reason is I
guess people prefer Java programming and Android SDK rather than
Android native development kit.
Nevertheless compiling libmp3lame library for Android using Android
NDK is very easy actually.
download Android NDK(also you need Android SDK and Eclipse with ADT plugin) and create simple project.
create directory called “jni” in your project’s directory.
download lame sources, extract, copy all sources from directory libmp3lame to jni directory. Also copy lame.h which is located in include directory of lame sources.
create jni/Android.mk file. it should look like this: