Simply paste this code into a simple skeleton Android project.
public final class DrawableView extends View
{
private float[] mVertices = {0, 0, 255, 0, 255,
Even though the documentation for drawVertices does not spell this out explicitly, the array size of the verts, texs, and colors arrays must all match the vertexCount. The third answer down in this question would also seem to confirm this. Keep in mind, only the first (vertexCount / 2) colors are used to draw the triangles, the other values are ignored.