Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/195.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 印地语字体不适用于webview,但适用于网页_Android_Webview - Fatal编程技术网

Android 印地语字体不适用于webview,但适用于网页

Android 印地语字体不适用于webview,但适用于网页,android,webview,Android,Webview,我只是通过Url调用网页,在网页上我提供了在服务器/网站上用印地语编写文本的工具,它工作正常,但当我调用我的应用程序时,它将不工作 try { webView = (WebView) findViewById(R.id.webview); webView.getSettings().setLoadWithOverviewMode(true); webView.getSettings().setUseWideViewPort(true); webView.setSc

我只是通过Url调用网页,在网页上我提供了在服务器/网站上用印地语编写文本的工具,它工作正常,但当我调用我的应用程序时,它将不工作

try {
    webView = (WebView) findViewById(R.id.webview);
    webView.getSettings().setLoadWithOverviewMode(true);
    webView.getSettings().setUseWideViewPort(true);
    webView.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY);
    webView.setScrollbarFadingEnabled(false);
    webView.getSettings().setBuiltInZoomControls(true);
    webView.getSettings().setJavaScriptEnabled(true); 

    String language_url = "http://pratinidhi.in/DataInsert.aspx?requestfor=" + RequestId 
        + "&APPID=" + GlobalValue.AppId 
        + "&UPID=" + GlobalValue.User_Id;
    Log.i("String Url", "" + language_url);
    WebView(language_url);
} catch(Exception ex) {
     ex.printStackTrace();
}
把这两行加起来

webView.loadData(hindi_content, "text/html; charset=UTF-8", null);
webView.loadDataWithBaseURL(null, hindi_content, "text/html", "utf-8", null);

你的android版本是什么?4.4 kitkat版本,但我想支持所有版本