Android – Setting up ActionBarCompat support library in Eclipse

July 25, 2013
By

This week, a new version of Android support library ( Revision 18 )  is released with a new library called appcompat under the package android.support.v7. This new library is available at <path-to-android-sdk>/extras/android/support/v7/appcompat .

The new library facilitates users to implement action bar back up to Android 2.1 ( API Level 7 ) .

This article, demonstrates how to setup the new ActionBarCompat support library in Eclipse.

In this article, we are using Eclipse 4.2.0 with ADT plugin 22.0.1.


1. Ensure to have the latest version of Android Support Library

Ensure, Android Support Library Revision 18 or above is installed

Figure 1 : Ensure, Android Support Library Revision 18 or above is installed


2. Create new Android Project from existing code

Create new Android project from existing code

Figure 2 : Create new Android project from existing code


3. Browse the directory appcompat from <path-to-android-sdk>/extras/android/support/v7 and click finish

Browse the directory containing the library appcompat

Figure 3 : Browse the directory containing the library appcompat


4. Now, a new project is created as “android-support-v7-appcompat”


5. Setup JavaBuild Path

  • Right click the project “android-support-v7-appcompat” and click “Properties”
  • Select “Java Build Path”
  • Open the tab “Order and Export”
  • Tick “Android Private Libraries” and click OK
Tick Android Private Libraries

Figure 4 : Tick Android Private Libraries


6. Clean and Build the project

Clean and Build the project "android-support-v7-appcompat"

Figure 5 : Clean and Build the project "android-support-v7-appcompat"


7. Ready to use

Now the ActionBarCompat library is ready to use for implementing action bar in Android applications.


8. What is next?

Now we need to test the working of this library. For this please follow the article titled “Implementing Action Bar using ActionBarCompat support library in Android


How to hire me?

I am George Mathew, working as software architect and Android app developer at wptrafficanalyzer.in

You can hire me on hourly basis or on project basis for Android applications development.

For hiring me, please mail your requirements to info@wptrafficanalyzer.in.

My other blogs
store4js.blogspot.com


Android Knowledge Quiz

Ready to test your knowledge in Android? Take this quiz :



Tags: ,

3 Responses to Android – Setting up ActionBarCompat support library in Eclipse

  1. Ronak gadhia on March 26, 2014 at 5:18 pm

    thank you….it is helpful for me……..ur answer appreciatable…

  2. rajni on September 3, 2014 at 5:25 pm

    i m not getting android private libraries plz help me out

  3. Swapnil Desai on May 5, 2015 at 9:06 am

    This link is very useful for me

Leave a Reply

Your email address will not be published. Required fields are marked *

Be friend at g+

Subscribe for Lastest Updates

FBFPowered by ®Google Feedburner