Using third-party libraries in an android project

I am just starting with android and very quickly and quickly look for any tutorials / resources that can answer my beginner questions.

  • How to import a third-party resource into my project and start using it? For example, I wanted to use scrollableTabActivity, a widget available at https://github.com/honcheng/ScrollableTabHost-for-Android . I downloaded, and it looks like this is a project in itself. How to import into my project and start using it?

This applies even to projects such as droid fu, for a living I could not figure out how to add them and start using them in my project.

I successfully added asynchttp to my project because .jar was available. But for projects like droid-fu or scrollableTabActivity, how can I use the source files to add functionality to my project?

Any help is appreciated.

thank

+3
source share
3 answers

The project you are referencing does contain a lot of demo code that shows how to use the control ScrollTabHostin your application. Instead of trying to include this material, which simply inflates your application, simply copy the file ScrollTabHost.javainto your project along with any resources on which it depends.

+1
source

, . , , Android , Is Library .

, , Android "" , .

+4

I agree with Mark Ellison's answer. But generally speaking, to import the entire project into Eclipse, check the box next to this third-party project name on the Project Links tab in your Properties project.

+1
source

All Articles