Setting up AmbilWarna Library for Color Picker in Android

October 10, 2012
By

AmbilWarna is an easy to use library to pick up a color in an Android application. The details about the AmbilWarna project is available at http://code.google.com/p/android-color-picker/


In this article we will see how to set up this library in Eclipse ( 4.2.0 )


1. Download the repository containing the library by issuing the given below command : 

git clone https://code.google.com/p/yuku-android-util/


2. Open Eclipse IDE and click the menu File->New->Other->Android->Android Project from Existing Code

Create an Android Project from existing code

Figure 1 : Create an Android Project from existing code


3. Select AmbilWarna folder from the downloaded repository


Select AmbilWarna folder from the downloaded repository

Figure 2 : Select AmbilWarna folder from the downloaded repository


4. Ensure that this project is a library.

In order to make this project a library, right click the new project created in the above step in Project¬† Explorer and click the menu “Properties” and tick the checkbox “Is Library” as shown below and click OK.

Make this project a library

Figure 3 : Make this project a library


5. Done

Now Eclipse is ready to develop Android Applications containing Color Pickers


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: , ,

5 Responses to Setting up AmbilWarna Library for Color Picker in Android

  1. Roy Mathew on November 2, 2012 at 7:30 pm

    Hi George, nice article.. however, I’m having some difficulty using this library. I get the following warnings…

    The method onTouch(View, MotionEvent) of type new View.OnTouchListener(){} must override a superclass method AmbilWarnaDialog.java /AmbilWarna/src/yuku/ambilwarna line 78 Java
    Problem The method onTouch(View, MotionEvent) of type new View.OnTouchListener(){} must override a superclass method AmbilWarnaDialog.java /AmbilWarna/src/yuku/ambilwarna line 55 Java

    I am using the google APIs version 16 in my project.

    • george on November 2, 2012 at 8:07 pm

      Hi Roy,
      You might be using Java 1.5 instead of 1.6 in Eclipse. In order to check this, go to Windows>Preference>Java>Compiler and select 1.6.

  2. GauravKumawat on December 19, 2012 at 12:18 pm

    Hi George, can u tell me how can i use this library for windows or the commands issued….in windows…

  3. zohaib sattar on September 24, 2013 at 12:13 am

    hi sir Awsm tutorials please help i cant find the AmbilWarna library plz help you show link above i am download but when i import this library its gives error on Eclipse???whats the matter??

  4. anand on March 19, 2015 at 1:35 pm

    when i importing the ambilwarna-master project its showin an error at xml file in xmal folder demopreference.xml in 11th line its showing

    error: No resource identifier found for attribute ‘supportsAlpha’ in package ‘yuku.ambilwarna.demo’

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