I followed the google oauth tutorial to implement the login to openId for my application.
I used https://www.google.com/accounts/o8/id, but some, like web browsing, not displaying the Google login page in the emulator. Only a blank page is displayed.
Here is my corresponding piece of code. Any inputs?
Intent intent = new Intent(this, WebViewActivity.class);
intent.setData(Uri.parse("https://www.google.com/accounts/o8/ud"));
startActivityForResult(intent, 0);
WebViewActivity code:
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_PROGRESS);
WebView webview = new WebView(this);
setContentView(webview);
Intent intent = getIntent();
if (intent.getData() != null) {
webview.loadUrl(intent.getDataString());
}
................
}
My web application uses it OpenId, so OAuthit’s not an option for me.
source
share