Hi,
I am trying to run the 'Google Buzz API Sample for Android' sample and
I get the error 'java.net.UnknownHostException: www.google.com' on the
last line:
GoogleOAuthGetTemporaryToken temporaryToken =
new GoogleOAuthGetTemporaryToken();
temporaryToken.signer = createOAuthSigner();
temporaryToken.consumerKey = "anonymous";
temporaryToken.scope = SCOPE;
temporaryToken.displayName = APP_NAME;
temporaryToken.callback = "buzz-sample:///";
isTemporary = true;
credentials = temporaryToken.execute();
I do have 'android.permission.INTERNET' set and I also added the
following lines in the beginning according to
http://code.google.com/apis/gdata/articles/proxy_setup.html
System.setProperty("http.proxyHost", "xxx");
System.setProperty("http.proxyPort", "xx");
System.setProperty("https.proxyHost", "xxx");
System.setProperty("https.proxyPort", "xx");
Note that the emulator's browser can access the internet and directly
accessing www.google.com through URLConnection also works.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en