Java tutorial
//package com.java2s; import android.graphics.Bitmap; public class Main { public static Bitmap createPlaceholderBitmap(int width, int height) { Bitmap.Config config = Bitmap.Config.ARGB_8888; Bitmap placeholderBitmap = Bitmap.createBitmap(width, height, config); placeholderBitmap.eraseColor(android.graphics.Color.DKGRAY); return placeholderBitmap; } }