Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Example of an OpenGL ES buffer on Android
C Java Shell Makefile
Latest commit b6b7d4e @richq Rename package to com.example.glbuffer
TIL that there's already an app on the play store that's called! Calling it example makes more sense anyway.


This is a complete example of how to use GLSurfaceView and native code to draw old-skool pixel buffer graphics on the Android platform. It is related to this blog post about the Android NDK.

To compile the code:

./ SDK [NDK]
ant debug
  • SDK - path to the SDK (or can be set in ANDROID_SDK)
  • NDK - path to the NDK. If not given, then assumes the ndk is next to the SDK.
Something went wrong with that request. Please try again.