0
我試圖提示android用戶使用WebView
創建youtube頻道,下面是該使用案例Creating Youtube Channel。Youtube API v3使用webView在Android上創建YouTube頻道
因此,首先,我打開mWebView
使用此URL https://m.youtube.com/create_channel?chromeless=1&next=/channel_creation_done
然後,我有下面的代碼片段隱藏網絡視圖創建完成時。
mWebView.setWebViewClient(new WebViewClient() {
public void onPageFinished(WebView view, String url) {
if ("https://m.youtube.com/channel_creation_done".equals(url))
view.setVisibility(View.INVISIBLE);
}
});
然而,成功的渠道創建Web視圖鏈接後不成爲https://m.youtube.com/channel_creation_done
預期。並且用戶留下了全部白色webview
屏幕。
規格有變化嗎?我在這裏做錯了什麼?
謝謝。