Java tutorial
//package com.java2s; import android.graphics.Color; import java.util.Random; public class Main { public static String getRandomColor() { Random rand = new Random(); Integer randomColor = Color.rgb(rand.nextInt(), rand.nextInt(), rand.nextInt()); return randomColor.toString(); } }