Java tutorial
//package com.java2s; import android.graphics.Color; import java.util.Random; public class Main { private static final Random sRandom = new Random(); public static int randomColor() { int color = Color.argb(255, sRandom.nextInt(256), sRandom.nextInt(256), sRandom.nextInt(256)); return color; } }