WebView webView = (WebView)findViewById(R.id.display);
WebSettings webSettings = webView.getSettings();
webSettings.setJavaScriptEnabled(true);
String path="file:///android_asset/";
String js = "<html><head>"
+ "<link rel='stylesheet' href='"+path+"jqmath-0.4.3.css'>"
+ "<script src='"+path+"jquery-1.4.3.min.js'></script>"
+ "<script src='"+path+"jqmath-etc-0.4.5.min.js'></script>"
+ "</head><body>"
+ "$$x={-b±√{b^2-4ac}}/{2a}$$</body></html>";
webView.loadDataWithBaseURL( "file:///android_asset/" ,js, "text/html", "UTF-8", null);
I added all the files that I downloaded from here in the assets folder but all I get when I run the app is $$x={-b±√{b^2-4ac}}/{2a}$$
instead of the intended equation. Is there anything that I am missing.