Problem Description
I am facing problem with `loading URL` in `web-view`. `Web-view` shows blank because it is not logged in. How to access `course file` without login into moodle2.6 by using `url`.
**Using this url format**
http://example.com/pluginfile.php/4418/mod_resource/content/10/xx-t2.pdf
**Here is my web-view code**
webView.setWebViewClient(new WebViewClient(){
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
//progDailog.show();
view.loadUrl(url);
return true;
}
@Override
public void onPageFinished(WebView view, final String url) {
//progDailog.dismiss();
}
});
webView.loadUrl("http://example.com/pluginfile.php/4418/mod_resource/content/10/xx-t2.pdf");
AI-Generated Solution
Powered by LMSouq AI · GPT-4.1-mini
Analyzing problem and generating solution…
Was this solution helpful?