I have .so library and it's 'JNICall' class, which is an interface for it. They was wrote not by me. To be honest, I decompiled one apk to get them. So the question - It is possible to use them in my project, and how I can do this?
Try to find proper documentation for your library otherwise it'll be difficult to integrate,
as for including the so file in your project follow this:
How do I import a native library (.so file) into Eclipse?
Related
I have to use an external library with '.a' extensión but I do not have any idea how to use it. I am totally lost, I don´t know if I have to import it or not and if I have to imported I don´t know how.
How can I use this library in my project?
When we want to invoke native library in Android apps, we can only use dynamic library, which usually ends with .so extension.
So that means you have to build a dynamic library based on .a file.
I have a Jar library developed in Eclipse ADT. I want to share it to customers but before that, I have to obfuscate my Android Jar library. I have searched enough but no clear answer was found. How can I do this?
I have tried Proguard inside and outside Eclipse but failed to get result!
Also tried to get information by communicating with Guardsquare company, but no clear result yet!
Any help is appreciated.
Thanks in advance!
So I ended up using native c++ code for important parts of my library. Now I have to share an .SO library beside my Jar library so users import both. Not so bad! At least Android Studio decompiler won't decompile my .SO file.
Advice: Don't waste your time securing your Jar file! It'll be reverse engineered like a piece of cake!
The .SO file also can be decompiled, but it would be much harder and result won't be same as the source code!
I have an android library project, which I want to include to my titanium android module. In the documentation I found no way to reference the library project. For adding a third party library the documentation has a guide to include a .jar file. So I tried to add the .jar file.
The library project also depends on native libraries (.so files) and resources. I experimented a little bit and I got it somehow working, that the ressources and native libraries are included in my .apk. The problem is: at runtime I get a ClassDefNotFoundError.
I tried pretty much everything and I don't know how to get this running.
BTW I'm a newbie, so maybe it is not even possible what I'm trying to do.
Can anyone please help?
This
fixed it. Just modify the script.
I am going to use SkyEpub 3 library in my android application to read ebooks in epub format. To get familiar with the method of using SkyEpub I have downloaded its android demo project from here.
Its demo project is working properly, But when I use the skyepub.jar in my own project, it says some methods and classes from the jar file are undefined. Of course in the mean time I am using an unlicensed version of this library. I want to test it before buying the license if it was ok. I doubt that the errors are because of using the unlicensed version of the library in my project.
Can any one tell me please what is the problem exactly?
Thank you in advance.
Because there are a lot of classes ,which are not in jar, in example project. In the example, they create a lot of classes by extends another classes from jar. I used this jar before.
I found what was the problem. I increased priority of the jar file in eclipse. Now it works.
I've been working for a month with android ndk, so I am quite a newbie. Currently I am trying to integrate some code into a big project and have multiple problems both with NDK and gstreamer. Questions are stupid but I would be very grateful if someone helped me:
1) After I build and compile a project, do I still need all of those Android.mk files? Or can I just add .so libraries using System.loadlibrary("library")?
2) After I build my .so files, do I still need to declare all .a files as build-shared libraries and link them to the .so which needs them?
3) When I add native android support, do I need to create separate libsomename.so or choose the existing?
Maybe someone could also link me to the good article about building?
1)No, if its already compiled all you need is the so and loadLibrary call. However, if you want to update the library with your app its probably a good idea to keep them
2)No, once you have a .so file that's all you need
3)I'm not sure what you're asking there.