문제

Recently I've developed an application able to post to Tumblr, for the aouth flow implementation I've used my own webview, when I get the response to the token request I open a new activity with an embedded webview in order to enter the credentials in the webpage obtained. This is working fine with Twitter, but somehow with Tumblr "Sign In" button does not work ! the only way to get logged in is pressing enter on the virtual keyboard. Do I need to add something to my webview in order to get the "Sign In" button working?

Thank you !

tumblr login page

My webview activity:

public class InAppBrowserActivity extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    WebView webview = new WebView(this);
    webview.setWebViewClient(new MyViewClient());
    setContentView(webview);

    String url = getIntent().getStringExtra(URL);
    webview.loadUrl(url);
}
도움이 되었습니까?

해결책

maybe you forgot to enable JavaScript?

webView.getSettings().setJavaScriptEnabled(true);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top