I have an application that makes use of the Android WebView, as well as some JavaScript. When my WebViewClient calls onPageFinished(), I alert my JavaScript to run
This is because Javascript executes before WebView's View related initialization. And Android WebView returns a 320x240 default value to JS.
Execute your JS after some time is ok, like this
function go() {
int height = view.getHeight();
int width = view.getWidth();
};
window.setTimeout(go, 300);