JNI: native bindings to java within android

there has been a lot of discussions about writing native code on android,
bottom line is that some of us need native bindings.

as a fairly experienced Java developer and mobile developer, i think
i may have a starting point we can elaborate on. - and hopefully come
up with a standard solution for dong so.

Java, as a language supports native bindings using the JNI API, which
you can read up a little bit on here:

JNI: example
http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jnie...

the core functional component is the use of the 'native' keyword and the
bindings to the java.lang.System.loadLibary() API, which, does seem to
be documented within the android reference:

java.lang.System
http://code.google.com/android/reference/java/lang/System.html#loadLi...)

the question here is how to build a native .so (shared library), but we
can refer to the JNI example above for instructions. we have also been
informed, through this list that you can build native code on the device,
but without UI bindings:

building native libraries (start)
http://benno.id.au/blog/2007/11/13/android-native-apps

 

 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值