MathJax in Android

335 Views Asked by At

I am trying to display MathJax CDN onto my Android app using WebView. I created a LaTex code here. Please help me display this html on my android app.

Result after Deployement

Thanks

1

There are 1 best solutions below

2
On

You are giving the wrong URL for your Assets file

Instead of getting the html file from assets of your app on mobile device you have given the location of your app code on your machine.

so change the URl to this and it will work :

 WebView wq;
    wq = (WebView) findViewById(R.id.webView1);
    WebSettings websettings = wq.getSettings();
    websettings.setJavaScriptEnabled(true);

    wq.loadUrl("file:///android_asset/circleeq.html");