Java tutorial
//package com.java2s; import static android.opengl.GLES20.GL_VALIDATE_STATUS; import static android.opengl.GLES20.glGetProgramInfoLog; import static android.opengl.GLES20.glGetProgramiv; import static android.opengl.GLES20.glValidateProgram; import android.util.Log; public class Main { private static final String TAG = "ShaderHelper"; public static boolean programValidated(int programId) { glValidateProgram(programId); final int[] status = new int[1]; glGetProgramiv(programId, GL_VALIDATE_STATUS, status, 0); Log.v(TAG, "Validated: " + glGetProgramInfoLog(programId) + "end"); return status[0] != 0; } }