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