I need to download pdf files from urls.
The link I posted shows how to do that. If you have a specific question about that:
TellTheDetails
I need to downalod the pdf files when user swipe in view pager. So i am asking a good way to this approach.
And that's where you lose me. I seem to recall that you had code to detect swipes in a ViewPager, so
you should be able to trigger downloads at that time. (Of course, if you already know which PDFs to download, you might want to start downloading them as soon as the app is started, in order to eliminate as much wait time for the user as possible.)
I found using Queue behaviour is match for this.
I don't know how were planning to use that class, so if you have a question about that, you need to be more specific: TellTheDetails