How to use .so file to create .apk file in android application for my own video codec

I want to create an application or an .apk file that can play videos in a specific format.

To do this, I compiled the source files and the received object files, from the object files I created a single shared library file (.so) with the command

gcc -c -fPIC hello.c -o hello.o
gcc hello.o -shared -o libhello.so 

Can someone please help me with the steps to create apk file from .so file in android Eclipse or android sdk

What is the importance of java files when creating apk file ...

+3
source share
3 answers

, , , , , android ndk. , .

First of all what you need to do is:

1) Android

2) Android "jni"

3) "C" ( ) .

4) /jni, Android.mk. linux, , ( , android ndk).

5) Android-ndk - ( , , ).

6) PATH ndk.

: NDK_PATH =/home/myPC/android-ndk-r7b

7) cd jni ndk-build. , .so, , Android.

8) /src .java, .so. android ndk.

9) JNI .so. , , JNI.

10) , , RGB, openGL ES .

+4

NDK. JNI . - hello-jni libs, , . ndk_home/samples/.

+1

All Articles