package org.smerty.zooborns;

import android.R;
import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.widget.ImageView;

public class FullscreenImage extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		
		ImageView fsimgview = new ImageView(this);
		
		if (fsimgview != null) {
			Uri imgUri = this.getIntent().getData();
			if (imgUri != null) {
				fsimgview.setImageURI(imgUri);
			}
			else {
				fsimgview.setImageResource(R.drawable.ic_menu_help);
			}
			setContentView(fsimgview);
		}
		else {
			Log.d("onCreate", "fsimgview was null?");
		}
	}

}

@@ -34,46 +34,160 @@
 ort 
-android.R;%0Aimport android.app.Activity
+java.io.FileInputStream;%0Aimport java.io.FileNotFoundException;%0A%0Aimport android.R;%0Aimport android.app.Activity;%0Aimport android.graphics.drawable.Drawable
 ;%0Aim
@@ -637,38 +637,343 @@
 %09%09%09%09
-fsimgview.setImageURI(imgUri);
+Drawable image;%0A%09%09%09%09try %7B%0A%09%09%09%09%09image = Drawable.createFromStream(new FileInputStream(imgUri.getPath()), %22src%22);%0A%09%09%09%09%09fsimgview.setImageDrawable(image);%0A%09%09%09%09%7D catch (FileNotFoundException e) %7B%0A%09%09%09%09%09// TODO Auto-generated catch block%0A%09%09%09%09%09e.printStackTrace();%0A%09%09%09%09%09fsimgview.setImageResource(R.drawable.ic_menu_close_clear_cancel);%0A%09%09%09%09%7D
 %0A%09%09%09

fix fullscreen image not drawing on many devices