Display pictures of sd card in GridView

view story

http://stackoverflow.com – I am trying to display some pictures from the sd storage in GridView in a Xamarin.Android app. The only documentation I've found is this: http://docs.xamarin.com/recipes/android/data/files/selecting_a_gallery_i... But it only works for one image, opening two or more pictures gives me an Java.Lang.OutOfMemoryError on this row: imageView.SetImageURI (bitmapList [position]); Found some Android answers here on SO: http://stackoverflow.com/a/823966/511299 Translated to C#: public static Bitmap DecodeFile (String s) { try { s = s.Replace ("file://", ""); //Decode im (HowTos)