WebView中不能输入,是因为思念设置的? [英] Webview can't type in, is that because of missing setting?

查看:200
本文介绍了WebView中不能输入,是因为思念设置的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android应用程序连接到Facebook的要求的应用程序的授权。

I have an Android application that connects to Facebook to request authorization of an Application.

我用下面的设置在WebView中,但一旦视图被加载,我无法输入登录信息。我所缺少的?

I use the following setting in the WebView, but once the view is loaded, I can't type in login details. What I am missing?

WebView webview;
webview = (WebView) findViewById(R.id.facebookview);
webview.getSettings().setJavaScriptEnabled(true);
webview.setWebViewClient(new FacebookWebViewClient());

webview
    .loadUrl("http://www.connect.facebook.com/login.php?return_session=1&nochrome=1&fbconnect=1&extern=2&connect_display=popup&api_key="
            + FConnect.API_KEY
            + "&v=1.0&next="
            + FConnect.SUCCESS_URL
            + "%3Ffb_login%26fname%3D_opener&cancel_url="
            + FConnect.CANCEL_URL
            + "%23fname%3D_opener%26%257B%2522t%2522%253A3%252C%2522h%2522%253A%2522fbCancelLogin%2522%252C%2522sid%2522%253A%25220.741%2522%257D&channel_url="
            + FConnect.XD_RECEIVER);

推荐答案

我有一个类似的问题。它结束了,因为web视图没有最初的焦点。我最初是在网页视图打开一个对话框。当对话框关闭时,我看到了你所描述的。当我删除的对话框,它的工作。

I had a similar issue. It ended up being because the webview did not have initial focus. I was originally opening a dialog on the webview. When the dialog closed, I saw what you are describing. When I removed the dialog it worked.

在Facebook的登录页面仔细一看为好。输入字段之前,有链接到Facebook的政策,等等。在某些情况下,这似乎是这些链接有重点,而不是输入字段。

Look closely at the Facebook login page as well. Before the input fields, there are links to Facebook policies, etc. In some cases, it seemed like those links had focus and not the input fields.

检查BFFPhoto在市场上。

Check BFFPhoto on the market.

卡门

这篇关于WebView中不能输入,是因为思念设置的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆