This is the code I'm trying to execute; onPageFinished (WebView view, string url) I use to enter my own css to an external site. Unfortunately, with Webview, it first renders the page and then applies CSS. How can I wait until a page is displayed and then javascript is applied before it is displayed?
Is there a simpler method with WebClient HTTP Get and redirecting CSS to local?
Thanks for your suggestions in advance!
com.webkitdemo; import android.app.Activity; import android.os.Bundle; import android.os.SystemClock; import android.view.View; import android.view.Window; import android.webkit.WebChromeClient; import android.webkit.WebView; import android.webkit.WebViewClient; public class WebKitDemo extends Activity { final Activity activity = this; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.getWindow().requestFeature(Window.FEATURE_PROGRESS); setContentView(R.layout.main);
source share