title: Android View pager load image one by one on swipe through next page
body: <p>I need to show 1000 images in viewpager from DB.The problem is if I fetch all images from DB and try to set those images to adapter,it shows <strong>Bitmap out of memory exception</strong> since heap size gets exceeded. So,I'm trying other way around which is to load images one by one when the user swipes to next page.I Googled a bit,but didn't find any appropriate solution.so any input on this is highly appreciated.</p>