Make downloading of .pdf file through anchor tag inside webview

A

AC Question

Hello everyone,

I have called this html page in my webview using below code:

public static String currentURL = "http://mydomain.com/index.html";

In this html page i have an anchor tag with below code:

<a href="http://mydomain.com/test.pdf"><button class="btn btn-success btn-lg">Click here to Download</button></a>

But when i click on this download button nothing happens, and if i see the logcat it says:

singleCursorHandlerTouchEvent -getEditableSupport FASLE

Please suggest me the way to make this download possible. Its slightly urgent.

Thanks
Rohit
 

Forum statistics

Threads
943,103
Messages
6,917,294
Members
3,158,821
Latest member
coehlcke