Java tutorial
//package com.java2s; //License from project: Open Source License import android.graphics.Color; public class Main { static String getR(int hex) { return String.valueOf(Color.red(hex)); } }