I want my user to login to Facebook. (There is already
a FacebookWebViewClient custom class that extends WebViewClient)

I use this code:
 WebView    webview;
        webview = (WebView) findViewById(R.id.facebookview);
        webview.getSettings().setJavaScriptEnabled(true);
        webview.setWebViewClient(new FacebookWebViewClient());

        final Activity activity = this;
        webview.setWebChromeClient(new WebChromeClient() {
          public void onProgressChanged(WebView view, int progress) {
            // Activities and WebViews measure progress with different
scales.
            // The progress meter will automatically disappear when we reach
100%
            activity.setProgress(progress * 1000);
          }
        });

        fConnect = new FConnect(this);

        webview.loadUrl("http://www.facebook.com";);

But I can't type in the log in info and password. What I am doing wrong?

2009/11/3 Indicator Veritatis <[email protected]>

> Another point: as I review the API doc (reference tag) on WebView, I
> see that it does not itself support key events or data entry. Now I
> don't know exactly what you are trying to do, but it sounds like you
> really want to use a WebViewClient object, not a WebView. This does
> support both.
>
>
> On Oct 30, 12:28 am, Marton Kodok <[email protected]> wrote:
> > Hello,
> >
> > I have a really small problem. I use the 1.6 and 2.0 emulator, failed on
> > both.
> > I have a webview that launches a login page, I am required to type in
> > there authentication information, but I can't do that neither with
> > keyboard neither with the emulator keyboard buttons. I tried
> > double-click the field to get focus, this works only on emulator 2.0.
> >
> > And my second questions is, how do I use the ALT button on the
> > emulator/computer?
> >
> > Regards,
> > Marton
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-beginners%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>



-- 
Márton

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en

Reply via email to