Reputation: 53
I am new to creating Android apps, so forgive me if this sounds very naive. 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?
Upvotes: 0
Views: 1285
Reputation: 11
Android documentation show the best way to include private libraries into the project: Put into libs folder. Android IDE automatically detect the change and make the magic. Android: Managing Projects
However you can add a Library project.
Upvotes: 1
Reputation: 2278
In eclipse if you want to add external library (jar file) into your project classpath, you need to add it to project's build path - you will find build path options inside project properties.
Edit: Drop your jar file into libs folder too. Rest stays valid.
Upvotes: -1
Reputation: 93708
Assuming there's no UI in the jar (that its just algorithms that you want to use as a library) just drop the jar into the /libs folder, make sure that its added to the project in project properties in Eclipse, and you can then reference it in your project like any other set of classes.
If you do have a UI in there, you'll have to remove it and rewrite it.
Upvotes: 2