Wednesday, July 20, 2011

Re: [android-developers] Re: HttpURLConnection gives FileNotFoundException



On Wednesday, July 20, 2011 12:44:00 AM UTC+2, Streets Of Boston wrote:

Have you checked (debugged) that your method getPasswordAuthentication is actually called? It could be that some other 'default' Authenticator is set at the same time and yours is not being used at all.

This is a good hint.

While my Authenticator.setDefault() is called just fine (no SecurityException) the
getPasswordAuthentication() is not being called as you suggest. I have not been able to track
down the reason for this yet. I have moved the setDefault() method to just before authentication should
take place, but with no luck.

So why could it be that
getPasswordAuthentication() is not being called in my Android program,
while it works perfectly in my identical Java program running on Windows or Linux? Same URL/username/passwd.

Thanks.



--
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