开发者

Native Android Application Java Front End

I am trying to produce a java front end, via some sort of Android "view" that will allow me to show the console output from a native C/C++ application binary.

I followed the steps from various google searches and I have a tool chain that produces native binarys that I can then "adb push" onto the android device. I can either use the adb shell or a console application like ConnectBot to native to the pushed path and run the binary lik开发者_运维问答e so: ./someApplication.

However as I stated in my opening sentence I would like to wrap this binary with a font end producing an apk that can be loaded onto the phone and when it runs it opens up and directs the stdio output from the native binary to the screen.


1) Create android Java project.
2) Place the your library in lib/armeabi folder of the project
3) In your java code loads the library and call exposed JNI calls

An example: http://davanum.wordpress.com/2007/12/09/android-invoke-jni-based-methods-bridging-cc-and-java/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜