[android-developers] Re: HttpUrlConnection problem

2009-04-24 Thread Mika
I can't use DefaultHttpClient because I need to get the OutputStream for writing to the remote server. But anyway... I accidently got this working, by calling the method that starts the thread (where all HttpUrlConnection stuff is handled) from an Activity class. Before I had it in a class that

[android-developers] Re: HttpUrlConnection problem

2009-04-23 Thread Streets Of Boston
I had a similar issue and i gave up. Instead i used the DefaultHttpClient class together with HttpPut/ HttpGet/HttpResponse classes. This works fine. On Apr 23, 5:50 am, Mika mika.ristim...@tkk.fi wrote: Hi all, I have a strange problem with HttpUrlConnection. I can send data (with POST),