Hello! Now loading the page is as follows:

mWebView.loadUrl("file:///android_asset/MyPage.htm") 

Is it possible to make the download happen through the Content Provider? For example:

 mWebView.loadUrl("content://com.example/MyPage.htm") 

But that doesn't work

    1 answer 1

    The question is difficult ...

    In WebView there is such a function: shouldOverrideUrlLoading() , if it returns true , then the control will be transferred to the axis with a request to handle this URL by the system. Then, in theory, the ActivityManager should be called, which, according to the mime type of the resource, will ContentProvider list of applications (having the appropriate ContentProvider ) from where you can choose the one you need.

    In general, we must try.