android - HTML page in WEBVIEW is slow and laggy -


I am working on a jQuery mobile application which uses HTML pages for UI which has some JS function I have some native functions through There are some popups and dialogs with input fields, but when I open some dialog or popup in HTML, the log cat gives me this warning

  w / webview_proxy (8104): java.lang. Throwable: WARNING: All WebView methods that were called on a webview method thread 'WebViewCoreThread' should be called on the UI thread. Future versions of the webview can not support use on other threads.   

And when entering values ​​in these input field pages and keyboard blinking starts. In this way I am calling theses native functions

JS function

  function settingting method () {activity.setSettings (); }  

Android method

  @JavascriptInterface Public Zero Set Settings () {shared context settings = PreferenceManager .getDefaultSharedPreferences ( MainActivity.This); The final string is webServiceURL = settings.getString ("url", ""); Last string inputfolder = settings.getString ("INPUTFOLDER", ""); Final string outputfolder = settings.getString ("OUTPUTFOLDER", ""); Index.loadUrl ("Javascript: settings ('" + webServiceURL +' ',' + InputFolder + ',' "+ OutPutFolder +" '') "};}   

How can I remove

The problem can be solved

  RunOnUiThread (new runnab) (public void run (), using "index.loadUrl (" javascript: setSettings ('+ webServiceURL +', '+ InputFolder +' ',' "+ + Outputfolder + '' ')") ;}});    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -