I refered through many resources but can\'t get right answer,
I have made an custom adapter to view images in a listview. This images are retrieved from memory card.
You are using
Bitmap myBitmap = BitmapFactory.decodeFile(i.getImagePath())
to load bitmap.. which can load large bitmaps into the memory, make sure that you load them in required size only.
Follow Loading Large Bitmaps Efficiently
It is also a good practice to load these bitmaps in AsyncTask.
For that follow Processing Bitmaps Off the UI Thread