使用DLL在Java C接口(Android版) [英] Using a DLL with C interface in Java (for Android)

查看:148
本文介绍了使用DLL在Java C接口(Android版)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究为Android编写的平台,(希望)使用DLL带有C接口的应用程序。抢从服务器获取信息的唯一途径就是通过这个API。这甚至可能?如果是这样,任何人都可以给我一个正确的方向呢?
谢谢


解决方案

  

我正在研究为Android编写的平台,(希望)使用DLL带C接口的应用程序。


DLL是Windows的术语。您不能使用在Android上一个Windows DLL。你需要C code,它可以在Linux上工作,因为Android是一个基于Linux的操作系统。


  

抢从服务器获取信息的唯一途径就是通过这个API。这甚至可能?


是否有可能建立在Android上使用C库?是。请参阅原生开发套件(NDK)

是否有可能创建只能通过一些C库访问的服务器?也许不是没有大量的工作,如果该服务器是从Internet访问。任何人都可以尝试打该服务器,也可以反向工程资料库,也可以在你的库到服务器的通信进行数据包检查。

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

解决方案

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.

这篇关于使用DLL在Java C接口(Android版)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆