How do you integrate a .jar file into an Android app?
-
I have a .jar file and the associated .java and .class files. What I want to do is create an Android app (I'm using Eclipse) and somehow integrate the .jar file with it. The .jar file acts as a Spellchecker and I want to create a Spellchecker app, so how should I go about doing this? I know I will have to make changes, of course, but is this possible?
-
Answer:
First of all, not all Java SE APIs that are called by third-party jars exist on Android, or if they do, work exactly the same. Next, it's better to include the source code into your source tree, rather than copying the jar to the libs folder. This way, the tools such as lint can have a look at it - http://developer.android.com/tools/debugging/improving-w-lint.html
Miguel Paraz at Quora Visit the source
Related Q & A:
- How do I convert a PDF file to PDF/A in Delphi?Best solution by softwarerecs.stackexchange.com
- How do I get the APK file for an Android app?Best solution by Yahoo! Answers
- In Visual Studio 2012 or 2013, how can I register a DLL file on Windows 7 64-bit computer using a Custom Action command?Best solution by Stack Overflow
- How can I burn a .rmvb file onto a DVD for viewing on a regular DVD player?Best solution by Yahoo! Answers
- How do I get a video file off a sony video camera disk?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.