Have a look over here 
http://www.anddev.org/udp-networking_-_within_the_emulator-t280.html

spybee

On Jul 6, 1:44 pm, jdesbonnet <[email protected]> wrote:
> I haven't explored the full Android API (I know it's not the full J2SE
> API), but it seems the java.net package which you need for network
> socket communication is there.
>
> If I were you I'd start with Eclipse or Netbeans and the Java Standard
> Edition and get two programs to communicate on the same computer.
> There are gazillions of examples out there (use Google!). When you are
> feeling comfortable with the standard Java environment then try
> porting your prototype to Android.
>
> Joe.
>
> On Jul 6, 6:10 am, sumit <[email protected]> wrote:
>
> > actually i don't want to use any server ...i just make an application
> > on android for chatting ,and file transfer(audio,video )..,,,,,,so one
> > emulator work as server another work as client and vice verse in
> > different machines  .through UDP...
>
> > On Jul 3, 6:36 pm, lbcoder <[email protected]> wrote:
>
> > > Sure.
>
> > > Server:http://httpd.apache.org/Client:https://developer.mozilla.org/en/downl...
>
> > > Seriously though... this is a ridiculous request. There are THOUSANDS
> > > of examples ofclient/servercommunications -- a little google search
> > > will lead you to all kinds of things;
>
> > >http://www.linuxhowtos.org/C_C++/socket.htm
>
> > > The machines being used are irrelevant, or even the fact that you are
> > > usingtwodifferent machines, the communications work the same way.
>
> > > Now here's the thing; you haven't specified any kind of requirements.
> > > What do you need to accomplish? Is data integrity paramount or is
> > > performance? This distinction is required in selectingbetweenTCP and
> > > UDP. Are you looking for a 1-off 
> > > open-request-response-closecommunication? Or are you looking for a more 
> > > ongoing conversation?
> > > Synchronous or asynchronous? Are there any existing high-level
> > > protocols that suit your needs (i.e. HTTP)? If you're programming an
> > > android application, use of standard protocols is much easier than
> > > having to develop your own... For instance, if you can use HTTP, you
> > > can simply make use of the HttpClient class. If you need to work out
> > > your own protocol, you may need to work with the Socket class.
>
> > > On Jul 3, 12:29 am, sumit <[email protected]> wrote:
>
> > > > hello all ,
>
> > > > can any body give me full  code ofclientservercommunicationwhich
> > > > capable to communicatebetweentwo computersin diff emulator ....
>
> > > > like M1 is first machine(PC) on that E1 (emulator) is running with
> > > >serverand on other M2 machine(PC) on thatclientrunning on E2
> > > > (emulator) .i want to communicated b/w them ....
>
> > > > can any body have a running application for that ............
>
> > > > thanks in advance ...............
>
> > > > Sumit
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Android Discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/android-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to