M
M
mobimaks2014-07-04 04:47:26
Android
mobimaks, 2014-07-04 04:47:26

How to implement VK authorization on Android?

I'm trying to log in to VK using OAuth, but the WebView has a black screen instead of the OAuth authorization dialog. With other URLs WebView works fine.

WebView wbWebView = (WebView)findViewById(R.id.wvWebView);
wbWebView.getSettings().setJavaScriptEnabled(true);
wbWebView.setWebViewClient(new VkWebView());
wbWebView.loadUrl("https://oauth.vk.com/authorize?client_id=4439464&scope=friends,wall&redirect_uri=https://oauth.vk.com/blank.html&display=mobile&v=5.21&response_type=token");

Why is that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dizar47, 2014-07-18
@mobimaks

Add mywebview.SetLayerType(LayerType.Software, null);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question