I'm trying various ways of Twitter authorization which requires
roundtrip to the browser. When I load auth URL into standalone browser
everything works well. However if I call same URL but into embedded
WebView (separate Actions, same app) the page loads but it is not
fully functional (I cannot click in the fields, or buttons). I suspect
that it's because JS is ether disabled or broken. Here are steps

1. Execute intent with
startActivity(new Intent("auth", Uri.parse(authUrl), this,
Browser.class));

2. Init browser
    private void initBrowser() {
        this.browser = (WebView) findViewById(R.id.browser);
        this.browser.getSettings().setJavaScriptEnabled(true);
        this.browser.getSettings
().setJavaScriptCanOpenWindowsAutomatically(true);
        this.browser.getSettings().setPluginsEnabled(true);
        this.browser.getSettings().setLoadsImagesAutomatically(true);
        this.browser.addJavascriptInterface(this, "MainScreen");
    }

3. Load url
this.browser.loadUrl(getIntent().getData().toString());

Thanks,

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

Reply via email to