Hi All,

Currently i am working on an application which loads up the a local Flash
File from Assets folder. I am using the WebView to show the Flash file, it
shows up correctly.

However i am not able to catch the any events when a button on that flash
file is clicked.

Please if anybody let me know that how can i catch the Button click on the
flash file, i am showing the Flash file on the WebView . here is my code
block

public class FullScreenActivity extends Activity implements OnClickListener
{
    WebView webView;
    @Override
    public void onCreate(Bundle SaveBundle)
    {
        super.onCreate(SaveBundle);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        this.setContentView(R.layout.full_screen);
        webView=(WebView)this.findViewById(R.id.webView1);
        webView.getSettings().setJavaScriptEnabled(true);
        webView.getSettings().setPluginsEnabled(true);
        webView.loadUrl("file:///android_asset/intro.swf");
        webView.setWebViewClient(new CustomWebViewClient());
        webView.requestFocus(View.FOCUS_DOWN);
    }
    @Override
    public void onStop()
    {
        super.onStop();
        webView.destroy();
    }
    @Override
    public void onClick(View v)
    {

    }
    class CustomWebViewClient extends WebViewClient
    {
        public boolean shouldOverrideUrlLoading(WebView view, String url)
        {
            System.out.println("url"+url);
            return true;
        }
    }
}
-- 
Thanks and Regards
Ajmer Singh

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to