> I provide user name and password in the standard way:
>
> private class MyAuthenticator extends Authenticator {
> protected PasswordAuthentication getPasswordAuthentication() {
> return new PasswordAuthentication(userName, password.toCharArray());
> }
> }
>
> installing the instance by:
>
> Authenticator.setDefault(new MyAuthenticator());
>
> And as I said already: The program works perfectly running on a Windows or a
> Linux PC.
>
> There must be something different with the Android environment, or the
> java.net classes involved?
Or your userName or password.toCharArray() are different values than
you think they are.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
Warescription: Three Android Books, Plus Updates, One Low Price!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment