DynaPDF Compatibility with Android - android

I am looking to use the DynaPDF in my Android project as a C library. However on the downloads page the only option I can see that could be used is "DynaPDF for linux for x86 (32)", as I understand it x86 is based on architecture where as Android use ARM architecture. I am quite new to native programming and so would appreciate if somebody could confirm was I guess or explain another way to implement the library.

To port the library, you must have access to the sources (the download page of DynaPDF has links to the compiled libraries, which is not very useful).

Related

Using cUrl with android on devices with different architectures

I would like to use native library cUrl in my android project, but i'm afraid that there could be problems with different architectures.
I'm new to NDK, so it would be great, if you'll help me with that question.
Thanks in advance
If you are going to include a native library in your Android application, you need to build it for all possible architectures like arm, x86. If you don't your application won't work on devices that you don't provide builds for and also they won't be visible in Google Play for those devices. However within those architecture builds you are safe.
Android NDK provides all the necessary support to get you covered in this scenario, so you should start from reading there.

Android NDK doesn't include ltdl

I'm trying to build a linux library for Android, but it seems that libtool for the android gcc toolchain doesn't include ltdl, the dynamic loader. Is there a system-related reason for this, or is it just not there?
How would I go about incorporating the ltdl from www.gnu.org/software/libtool/ into an android build?
Thanks!
Many of the standard libraries are 'missing' from the Android NDK most likely for technical reasons of which I am not aware. I do believe in the release notes for the NDK there are entries for those standard C libraries which are not currently incorporated there might be a mention in there as to why ltdl. I can only suggest to get the source and create an Android NDK project and build it that way. Although may I ask why you need the dynamic loader.. android loads libraries as required anyway (so I understand in my limited knowledge)

how to port Snort on Android OS

Is there a way to port Snort to Android OS? I have already ported
libpcap to Android and I have made some simple native sniffers which worked
perfectly.To do this, I used the NDK development kit that offers you some
tools for cross compiling C programs to ARM architecture.
Is this possible to do it for Snort. I know that Snort is a big project that
contains many source files and uses many modules such as Libpcap, PCRE,
Libdnet, Barnyard2, DAQ. I am wondering if is there a way to build
this code for Android.. E.g. by statically link all this modules.. Moreover an
other potential problem may be the fact that Android uses a subset of libc
(bionic), so maybe some basic functions are not available..
Have anyone done it before? Or, can some one give me some help on how
to start?
Lack of exception handling and STL was very painful when i ported using NDK. As snort is C based, that shouldn't be the case. I guess unicode handling (as ndk doesnt support wide char functionality) can get tricky.

how to include the Skype Kit java APIs inside an android application on Ecclipse IDE?

I am working on an application where I need to integrate the Skype Java APIs inside an android application.
Could some one provide any pointers?
Thanks.
You have to include the library (the .jar file) into the Build Path of the project and to put the libraries in the project folder. This article could be quite useful.
SkypeKit is not a pure Java implementation. As I understand it is natively distributed for various processor architectures on linux (as well as windows and osx) It requires you to link to native libraries via JNI. That requires you to first download the Android NDK - http://developer.android.com/sdk/ndk/index.html Beyond that bit of information I can not help as I do not have access to SkypeKit myself.

Porting C to Android using Android NDK

Has anyone used the Android NDK to port a Linux app? We have an SSL VPN solution at work which Openconnect (http://www.infradead.org/openconnect.html) works with, but there is currently no client (from Cisco or otherwise) on Android. Is using the Android NDK a feasible approach to get this to work?
Thank you in advance
The NDK is a good solution for porting C/C++ Apps. You need to do a thin java shell to pass over any input, init and exit the program.
If your C app requires STL or exceptions - there are modified versions of the NDK that support them.
The Android NDK is not for porting apps. It is for creating libraries that can be accessed from a standard Android Dalvik app via JNI.
So, if you have the source code to this project, and it results in a .so, and you can write a JNI wrapper for it, the NDK may be a solution for you. Considering the project you cite seems dependent upon scripts, I suspect that's not how it was set up for use.

Categories

Resources