On my application I used universal image downloader BaseImageDownloader class for syncronious loading contents of gallery.For the same content from Imageloader.getInstance().loa
Please add following permissoions to your mainfest.
Also Please have a look at
How to grant temporary access to custom content provider using FLAG_GRANT_READ_URI_PERMISSION