问题描述
我有C ++文件,这是我在使用的Android NDK使用图书馆和jni.It工作正常的Android。但现在我想用黑莓开发相同的文件和库。我想在cpp文件中转换为Java,但有大量的cpp文件是因此不妥善解决,试图数百个文件转换成左右。
I am having C++ files and library which I have used in Android using ndk and jni.It works fine in Android. But now I want to use the same files and library for Blackberry Development. I am trying to convert the cpp files in to java but there are large number of cpp files which is thus not a proper solution to try to convert around hundreds of files
我想知道是否有任何CPP到Java转换器提供或者我如何使用JNI在我的黑莓应用程序的开发。
I want to know are there any cpp to java converters available or how can I use the jni in my Blackberry application development.
还是有什么更好的选择?
Or are there any better options??
推荐答案
目前的黑莓智能手机不支持JNI可言,因此,使用C ++完全是出于这些设备上的问题。你必须使用Java只。
Current Blackberry smartphones do not support JNI at all, so using C++ is completely out of the question on those devices. You have to use Java only.
黑莓PlayBook v1.0.7 +,以及未来智能手机OS7,将有支持C ++的NDK。 Java将不会在这些设备上使用(除了在Android播放器),所以没有JNI需要
BlackBerry PlayBook v1.0.7+, and future OS7 smartphones, will have an NDK that supports C++. Java will not be used on those devices (except in the Android player), so no JNI needed.
这篇关于在黑莓使用C ++类或转换cpp文件到Java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!