import android.app.Activity; import android.widget.*; import android.graphics.*; static void androidShowClickableImage(final S imageID, final int borderColor, final Runnable onClick) { thread "showimg" { ImageView iv = new ImageView(androidContext()); iv.setBackgroundColor(borderColor); iv.setImageBitmap(BitmapFactory.decodeFile(loadLibrary(imageID).getPath())); if (onClick != null) iv.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { call(onClick); } }); androidShow(iv); } }