!636 !standard functions // for "call" import android.app.Activity; import android.widget.*; import android.graphics.*; main { static Activity androidContext; psvm { print "Putting bitmap on widget..." int shift=new java.util.Random().nextInt(); int w=256, h=256; int[] pixels = new int[w*h]; for (int i=0; i < w*h; i++) pixels[i] = i+shift; Bitmap bitmap = Bitmap.createBitmap(pixels, w, h, Bitmap.Config.RGB_565); call(androidContext, "updateWidgetWithBitmap", bitmap); print "yo" } }