Download pdf file form url and saving in the specific folder in the mobile.

I had implemented using “Application.openurl()” and it automatically downloading .pdf file, but it is redirecting to browser. which shouldn’t happen.
My scenario is, downloading pdf file and save in specific folder or in downloads folder in mobile with out opening browser. I haven’t find any solution from google . Is there anyway to do it?

This would probably be the easiest way:

I wrote some library functions for downloading Text(JSON), Audio, or PDF here with the prefix “Web”