android: adding draw2buffer support