[android-developers] HttpURLConnection redirect - doInBackground

2012-07-18 Thread Jacob Hansen
I'm using HttpURLConnection to do communication with a backend server and im doing so in an async task in the doInBackground method as you should. Now I need to be able to follow 302 redirects, but I'm having some problems with this. The issue is that the new location usually will be on

[android-developers] Re: HttpURLConnection redirect - doInBackground

2012-07-18 Thread Jacob Hansen
This was caused by the fact that I sent the same headers and did not change the host header of the request which caused Apache to be confused it seems. -- 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] DOA Object serving a Resource from Android Library Project

2012-06-21 Thread Jacob Hansen
Hi, I'm currently making a SDK for a payment gateway, however I'm having some problems. The project setup is supposed to be: *Library Project* DAO Classe SDK Server connectivity class *Application* UI Using the above Library project And from the library project I want to send some images