Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?B?Sm9zaHVhIENyYW5tZXIg8J+Qpw==?= Newsgroups: comp.lang.java.programmer Subject: Re: two android applications connected with TCP protocol Date: Tue, 17 Jun 2014 14:17:32 -0500 Organization: A noiseless patient Spider Lines: 15 Message-ID: References: <773cdb5e-80da-411b-b00c-c85d2afb1e05@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 17 Jun 2014 19:17:44 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="8cedddb29338592f734c41b16a68fadc"; logging-data="7321"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19xEAenyLZsB9iNG3KQfO9l9oPGOSbFRd0=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: <773cdb5e-80da-411b-b00c-c85d2afb1e05@googlegroups.com> Cancel-Lock: sha1:U3tOdgxfxkvMqFewxPPLTaPTQwY= Xref: csiph.com comp.lang.java.programmer:28763 On 6/17/2014 12:39 PM, danymota19@gmail.com wrote: > I'm trying to make two android applications connected with TCP protocol. > Client has an imageView and when you push the button, it is supposed to send that image to the server and after server reads it, it is suppose to display the image. > but I haven't been able to display the sent image in server. > somebody could please give me a hand? Maybe this: > public static final int SERVERPORT = 6000; ... > private static final int SERVERPORT = 5000; might be the cause of your problems? -- Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth