Java tutorial
//package com.java2s; import android.graphics.Color; public class Main { public static int getColorByRGB(int[] intRgb) { if (intRgb.length != 3) { return 0xffffff; } System.out.println(intRgb[0] + "|" + intRgb[1] + "|" + intRgb[2] + "|"); return Color.rgb(intRgb[0], intRgb[1], intRgb[2]); } }