/*
   * imageView = (ImageView) findViewById(R.id.imageView); Bitmap myImg =
   * BitmapFactory.decodeResource(getResources(), R.drawable.image);
   *
   * Matrix matrix = new Matrix(); matrix.postRotate(30);
   *
   * Bitmap rotated = Bitmap.createBitmap(myImg, 0, 0, myImg.getWidth(),
   * myImg.getHeight(), matrix, true);
   *
   * imageView.setImageBitmap(rotated);
   */
  public static void showImage(ImageView imageView, String imageName) throws IOException {
    Log.d(TAG, "showImage");

    Bitmap bm;
    bm = ImageManager.getBitmapFromAssets(imageName);
    imageView.setImageBitmap(bm);
  }
  public static void showImage(ImageView imageView, String imageName, float angle)
      throws IOException {
    Log.d(TAG, "showImage");

    Bitmap bm;
    bm = ImageManager.getBitmapFromAssets(imageName);

    Matrix matrix = new Matrix();
    matrix.postRotate(angle);

    Bitmap rotated = Bitmap.createBitmap(bm, 0, 0, bm.getWidth(), bm.getHeight(), matrix, true);

    imageView.setImageBitmap(rotated);
  }