简体   繁体   English

我可以在同一个项目中使用本机语言支持和 Java 代码实现吗

[英]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.

相关问题 我可以在同一个项目中使用JRuby on Rails和Java Servlet吗? - Can I use JRuby on Rails and Java Servlet in a same project? Sonar是否支持同一项目中的多种语言? - Does Sonar support multiple language in same project? 我可以创建一个游戏! 框架项目并使用现有的Java代码? - Can I create a Play! framework project and use existing Java code? 我可以在多模块多语言(kotlin 和 java)项目应用程序中使用协程吗? - can I use coroutine in a multi module multi language( kotlin and java ) project app? 我可以将 Java 编译为本机代码吗? - Can I compile Java to native code? 我可以在反应原生的本机Android实现中使用静态布局(本机UI)吗? - can I use static layout (native UI) in react native's native android implementation? 我可以将本机编译用作Java模糊处理吗 - Can I use native compilation as Java obfuscation 我可以在同一个项目上使用两个不同的 Eclipse (IDE java) 版本吗? - Can I use two different Eclipse (IDE java) versions on same project? 如何重置和删除我为 VS Code 添加的 Java 语言支持? - How to reset and remove the Java language support which I had added for VS Code? 如何从JDK(SocketChannelImpl和SocketDispatcher)更改Java本机代码(C实现)并重新编译以与JDK一起使用? - How to change Java native code (C implementation) from the JDK (SocketChannelImpl and SocketDispatcher) and recompile to use with the JDK?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM