I open a simple flash website in my web browser using the following code:
Java Code:
package com.sample.webview; import android.app.Activity; import android.app.ProgressDialog; import android.graphics.Bitmap; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.webkit.WebView; import android.webkit.WebViewClient; import android.widget.Button; public class SampleWebViewActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); final WebView webView = (WebView) findViewById(R.id.webview); final ProgressDialog progress = new ProgressDialog(this); progress.setMessage("loading"); webView.getSettings().setJavaScriptEnabled(true); webView.getSettings().setPluginsEnabled(true); webView.getSettings().setBuiltInZoomControls(true); webView.setWebViewClient(new WebViewClient() { @Override public void onPageStarted(WebView view, String url, Bitmap favicon) { super.onPageStarted(view, url, favicon); progress.show(); } @Override public void onPageFinished(WebView view, String url) { super.onPageFinished(view, url); progress.dismiss(); } }); Button mButton = (Button) findViewById(R.id.button); mButton.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { webView.loadUrl("http://www.fusioncharts.com/demos/features/#linkedcharts-for-easy-drill-down"); } }); } }
main.xml:
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <Button android:id="@+id/button" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_margin="5dp" android:text="Load URL" /> <WebView android:id="@+id/webview" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_margin="5dp" /> </LinearLayout>
Now that the page is fully loaded, and I'm trying to scroll down to view the rest of the content, a web view appears on top of the "Download URL" button. Check out the screenshot:

while it should look like this:

Please suggest what I should do to make it work correctly.
Edit: I am using a galactic note (OSv2.3.5) with the latest version of both Flash Player and Adobe Air.
mudit source share