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

2011-07-20 Thread Mark S.
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

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

2011-07-20 Thread Mark S.
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

[android-developers] HttpURLConnection gives FileNotFoundException

2011-07-19 Thread Mark S.
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

[android-developers] Re: HttpURLConnection gives FileNotFoundException

2011-07-19 Thread Mark S.
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

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

2011-07-19 Thread Mark S.
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:

[android-developers] Svar: how to create a apk file

2011-06-24 Thread Mark S.
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

[android-developers] Building Android programs on the command line

2011-06-10 Thread Mark S.
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

Svar: Re: [android-developers] Building Android programs on the command line

2011-06-10 Thread Mark S.
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