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
OK, problem solved.
If I specify authorization in the HTTP header, something like:
httpConnection.setRequestProperty(Authorization, Basic +
Base64.encode(username:password));
then I can skip the Authenticator class alltogether. This approach works
I have a very simple working Java PC program that I try to run on Android.
The code access a web service with a simple SOAP call.
I create the connection as follows:
URL url = new URL(http://...;);
URLConnection urlConnection = url.openConnection();
HttpURLConnection
Further investigation provides some additional information on this topic:
It appears to be a permission issue as also the initial send request
operation fails.
Without an exception however, but with the following status code from
httpUrlConnection:
401 Unautorized
Note: I *do *include
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:
Ankit,
Please check http://geosoft.no/development/android.html.
Item #8 for creating a keystore, #14 for creating an unsigned .apk, and #15
for signing the .apk file.
Regards,
Mark
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To
A guideline that shows how to build Android programs using a command line
environment only
has been created:
http://geosoft.no/development/android.html
Comments and suggestions are appreciated.
Thanks.
Mark
--
You received this message because you are subscribed to the Google
Groups
The intention of the guideline http://geosoft.no/development/android.htmlis
not primarily to be able to bypass Eclipse,
but rather provide information and knowledge about the building process
itself:
which stages are involved, which tools are being used etc.
This should be vital information for
8 matches
Mail list logo