Android webview scrolling doesn't work
<p>I'm trying to scroll down to the bottom of the page in a webview, I'm using the webview example google provided in their tutorials. I'm using this line of code to try to scroll but it isn't working. mWebView.pageDown(true);
Any suggestions on how to make it scroll programmatically? Thank you.  </p>

<pre><code>public class WebViewExample extends Activity {

private static final String LOG_TAG = "WebViewDemo";

private WebView mWebView;

private Handler mHandler = new Handler();

@Override
public void onCreate(Bundle icicle) {
    super.onCreate(icicle);
    setContentView(R.layout.main);
    mWebView = (WebView) findViewById(R.id.webview);

    WebSettings webSettings = mWebView.getSettings();
    webSettings.setSavePassword(false);
    webSettings.setSaveFormData(false);
    webSettings.setJavaScriptEnabled(true);
    webSettings.setSupportZoom(false);

    mWebView.setWebChromeClient(new MyWebChromeClient());

    mWebView.addJavascriptInterface(new DemoJavaScriptInterface(), "demo");

    mWebView.loadUrl("http://www.google.com/search?q=android+webview+scroll+doesnt+work&amp;hl=en&amp;safe=off&amp;prmd=ivns&amp;ei=0b0cTquNNI6WsgP6l7igBQ&amp;start=10&amp;sa=N#sclient=psy&amp;hl=en&amp;safe=off&amp;source=hp&amp;q=android%20webview%20scrollable&amp;pbx=1&amp;oq=&amp;aq=&amp;aqi=&amp;aql=&amp;gs_sm=&amp;gs_upl=&amp;bav=on.2,or.r_gc.r_pw.&amp;fp=c306e119a7d85f91&amp;biw=1280&amp;bih=738&amp;pf=p&amp;pdl=300");

           //this is where I try to scroll, doesn't work
           mWebView.pageDown(true);

}

final class DemoJavaScriptInterface {

    DemoJavaScriptInterface() {
    }

    /**
     * This is not called on the UI thread. Post a runnable to invoke loadUrl on the UI thread.
     */
    public void clickOnAndroid() {
        mHandler.post(new Runnable() {
            @Override
            public void run() {
                mWebView.loadUrl("javascript:wave()");
            }
        });

    }
}

/**
 * Provides a hook for calling "alert" from javascript. Useful for debugging your javascript.
 */
final class MyWebChromeClient extends WebChromeClient {
    @Override
    public boolean onJsAlert(WebView view, String url, String message, JsResult result) {
        Log.d(LOG_TAG, message);
        result.confirm();
        return true;
    }
}
</code></pre>

<p>}</p>
