Using a DLL with C interface in Java (for Android)

本秂侑毒 提交于 2019-12-25 02:23:07

问题


I was looking into writing an app for Android platform that would (hopefully) use a DLL with a C interface. The only way to grab information from the server is through this API. Is this even possible? If so, could anyone give me a point in the right direction? Thanks


回答1:


I was looking into writing an app for Android platform that would (hopefully) use a DLL with a C interface.

"DLL" is a Windows term. You cannot use a Windows DLL on Android. You will need C code that can work on Linux, as Android is a Linux-based operating system.

The only way to grab information from the server is through this API. Is this even possible?

Is it possible to create a C library for use on Android? Yes. See the Native Development Kit (NDK).

Is it possible to create a server that can only be accessed by some C library? Probably not without a lot of work, if that server is accessible from the Internet. Anybody can try hitting that server, or can reverse-engineer your library, or can perform packet inspection on your library-to-server communications.




回答2:


Did you try Mono?

Disclaimer: I have used in on Linux and (it works) but not on android.



来源:https://stackoverflow.com/questions/5445127/using-a-dll-with-c-interface-in-java-for-android

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!