Java tutorial
//package com.java2s; import android.opengl.GLES20; import android.util.Log; public class Main { private static final String TAG = "GL utils"; private static int validateProgram(int program) { int[] status = new int[1]; GLES20.glValidateProgram(program); GLES20.glGetProgramiv(program, GLES20.GL_VALIDATE_STATUS, status, 0); if (status[0] != GLES20.GL_TRUE) { Log.e(TAG, "Error validating program: " + GLES20.glGetProgramInfoLog(program)); return 0; } return 1; } }