Out of Memory exception
Hi when i run this app on my device ,On scrolling the MasterListview i got the out of memory exception. This is maybe because of http://stackoverflow.com/questions/22043232/out-of-memory-exception-with-custom-gridview /* You are attempting to allocate too much memory for image data. As you explained in the comments, your images are fairly large and they are being read as soon as the adapter is created.
Reading this into memory will consume 4 bytes per pixel, so if your images are 1024 pixels square, the math is:
1024 × 1024 × 4 = 4MB
15 images × 4 MB/image = 60MB
This likely exceeds the heap budget of 48MB */
Just to add up this issue exist when you try to run the app on a "real device" (phone) . Because memory allocated for the app in real device is quite small compared to when you use the emulator .
Not a correct solution @emmjk . The device is not a problem.
Try using some images library to load images in imageView .