[英]Can I use Native language support and Java code implementation in same project
I want to use opengl es tlo form some geometries like arrows, triangle etc. and a camera preview class to display camera image in my android application.我想使用 opengl es tlo 形成一些几何形状,如箭头、三角形等和相机预览 class 在我的 android 应用程序中显示相机图像。 I want to know, if I can use native and Java classes both in a same class.我想知道,如果我可以在同一个 class 中使用本机和 Java 类。 I am just a beginner in Android application development.我只是 Android 应用程序开发的初学者。 I will be grateful for your kind advise.我将不胜感激您的善意建议。 Thank You, Arslan谢谢你,阿尔斯兰
While you dont use any library not allowed like swing you can use native and java classes at the same time in a class虽然您不使用任何不允许的库,例如 swing,但您可以在 class 中同时使用本机和 java 类
If I understand your question correctly, you would like to know of some way to integrate Java and C++ code together easily.如果我正确理解您的问题,您想知道一些将 Java 和 C++ 代码轻松集成在一起的方法。 JavaCPP does just that and it works for Android too: JavaCPP 就是这样做的,它也适用于 Android:
http://code.google.com/p/javacpp/ http://code.google.com/p/javacpp/
(Disclaimer: I am the author.) (免责声明:我是作者。)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.