I send back and forth on the same connection i.e. same port. All I do I say,

connection.connect();
data_out=new DataOutputStream(connection.getOutputStream());
data_in=new DataInputStream(connection.getInputStream());
data_out.writeUTF("my data goes here");
data_out.flush();
data_out.close();
connection.disconnect();



On Thu, May 13, 2010 at 7:54 AM, Vinay S <s.vinay....@gmail.com> wrote:

> Hi,
>
> Did you try sending the data back using the same HTTP connection?
>
> Try opening a new HTTP connection and send the data back..
>
> This might give you some clue, is this the problem of HTTP..
>
> Regards,
> Vinay
>
> On May 10, 10:27 pm, strog <droid.j...@googlemail.com> wrote:
> > Hi Guys,
> > I wanted to create a an android application that works like a remote
> > control for a multimedia system. This client server dialog is done on
> > the json class api. The class that I use for establishing the
> > communication is the HttpURLConnection. I used the following example
> > for writing my programm(
> http://www.anddev.org/getting_data_from_the_web_urlconnection_via_htt...
> > ).
> > I ran wireshark to monitor the communication, and i see the data that
> > is being sent from the server, but sending orders back to the server
> > from my milestone doesn't happen at all.
> > I turned off all my firewalls that could interfere with the
> > communication.
> >
> > --
> > 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+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> > For more options, visit this group athttp://
> groups.google.com/group/android-developers?hl=en
>
> --
> 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+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to