Java tutorial
//package com.java2s; //License from project: Apache License import android.graphics.ColorMatrix; import android.graphics.ColorMatrixColorFilter; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; public class Main { static private Method sMethod; static public void setFilterMatrix(ColorMatrixColorFilter filter, ColorMatrix colorMatrix) { try { sMethod.invoke(filter, colorMatrix); } catch (InvocationTargetException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } } }