Java tutorial
//package com.java2s; import android.graphics.Matrix; public class Main { private static float[] mMatrixValues = new float[9]; public static void getValuesFromMatrix(Matrix matrix, float[] values) { matrix.getValues(values); } public static float getValues(Matrix matrix, int offset) { matrix.getValues(mMatrixValues); return mMatrixValues[offset]; } }