http://www.developer.com/http://www.developer.com/ws/android/development-tools/eclipse-android-tutorial-working-with-libraries.html
JAR files provide developers with a handy way of distributing Java class files, associated metadata and resources between projects on the Java platform, and Android is no exception. There are plenty of third party Android-compliant libraries that are packaged and distributed via the JAR format, which can add valuable extra functionality to your Android project. However, to leverage these JAR files, you must first add them as a Referenced Library within Eclipse. In this tutorial, I'll show you how to add a JAR file to an existing Android project in an Eclipse installation, before showing you how to create your own Android-compliant libraries, for easily sharing resources between projects. This tutorial uses the following software -- the good news is that it's all free to download and use: The first step is to decide which JAR file you want to add to your installation. In this example we'll be adding the Google Analytics Android SDK. Download your JAR file of choice and unzip it. To add your JAR file to Eclipse, take the following steps Find the JAR folder you unzipped earlier. Drag and drop it into the new lib folder, and when prompted select Copy files. Your JAR file will now appear in the lib folder in Eclipse's Package Explorer. Although your JAR file is now displayed in the Package Explorer, you still need to link your JAR file to Eclipse before you can access its functionality. Select Java Build Path followed by the Libraries tab. Click the Add JARs… button and select your JAR file from within the lib folder. You have now successfully added and linked a JAR file to your Android project! Note: In some instances, you need to add specific permissions before you can begin leveraging the JAR file. For example, the Google Analytics Android SDK requires the following permissions to be added to the AndroidManifest.xml file: Make sure you read the JAR file's accompanying documentation, to ensure you have the correct permissions set. You have now successfully added a JAR file, but what if you wanted to create your own library, to share data across several Android projects? In this section, I'll show you how to create an Android Library from an existing Android project, and then leverage that library in a different project. After you have added the library, you will be able to use all of its classes, just as you would the standard Android SDK classes. Select the Android option, and tick the Is Library box. Select Android from the list and click the Add button. Select the project you marked as a library, and click the Ok button. You have now successfully added the library to your project!
Eclipse Android Tutorial: Working with Libraries
May 8, 2012
Download and Add Your JAR File


Link Your JAR File to Eclipse


{uses-permission android:name="android.permission.INTERNET" /}{uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /}Creating Android-Compliant Libraries