Re: [android-developers] Re: HTTP server in Android

2012-10-11 Thread Archana
Are the IP addresses of 2 Android emulators unique? Or how do I get the IP address of the emulator? On Monday, October 8, 2012 12:12:01 PM UTC+3, Amey Bapat wrote: for GCM refer this blog http://www.vogella.com/articles/AndroidCloudToDeviceMessaging/article.html On Mon, Oct 8, 2012 at 1:00

Re: [android-developers] Re: HTTP server in Android

2012-10-11 Thread Lew
Archana wrote: Are the IP addresses of 2 Android emulators unique? Or how do I get the IP address of the emulator? Spend five minutes with your favorite search engine. That's how I found http://developer.android.com/tools/devices/emulator.html#networkaddresses It really took less than five

Re: [android-developers] Re: HTTP server in Android

2012-10-11 Thread Archana
Hi, I want to communicate between n Android phones. I want each to behave as clients and do some operation one after another updating a common file. For this, I need each phone to register its IP to a server(so that a service can be started). I was wondering if this can be tested using

Re: [android-developers] Re: HTTP server in Android

2012-10-11 Thread Jxn
HTTP are so wrong to do this so I don't know where to start. Use XMPP instead. It is designed for multiple clients talking to each other. No, it isn't a chat protocol. Jabber is just one application on top of XMPP. Take a look at pubsub how to do exactly what you want to do. And as a bonus you

[android-developers] Re: HTTP server in Android

2012-10-08 Thread Archana
Hi, Thanks for your reply.. Just a basic doubt. What will be the IP addresses of 2 instances of the emulator? Is it same or different? On Sunday, October 7, 2012 10:19:14 AM UTC+3, gjs wrote: Hi, No sure that will work if both emulators have the same IP address. I'd try running server

[android-developers] Re: HTTP server in Android

2012-10-08 Thread gjs
Hi, A HTTP server is useful in Android for some apps, eg: wireless remote access to your files inside a LAN. Regards On Sunday, October 7, 2012 6:19:14 PM UTC+11, gjs wrote: Hi, No sure that will work if both emulators have the same IP address. I'd try running server client programs in

Re: [android-developers] Re: HTTP server in Android

2012-10-08 Thread Amey Bapat
for GCM refer this blog http://www.vogella.com/articles/AndroidCloudToDeviceMessaging/article.html On Mon, Oct 8, 2012 at 1:00 PM, gjs garyjamessi...@gmail.com wrote: Hi, A HTTP server is useful in Android for some apps, eg: wireless remote access to your files inside a LAN. Regards On

[android-developers] Re: HTTP server in Android

2012-10-07 Thread gjs
Hi, No sure that will work if both emulators have the same IP address. I'd try running server client programs in the same emulator. For the server use any port number between 1025 65535 that is not already used, ports below 1024 are generally reserve in linux/unix system need su rights.

[android-developers] Re: HTTP server in Android

2012-10-05 Thread Archana
Hi, I need to create an application(using 2 emulators) in which: Each emulator serves as a server and a client. Server starts as a service in background. On request by the client, I have to transfer the contents of a JSON file from 1 emulator's server to other emulator's client.. Can you

[android-developers] Re: HTTP server in Android

2012-10-04 Thread gjs
Hi, Change the port number in your request - PORT = 8765 not 8080 And yes you can write your own http server simply by using a server socket. http://docs.oracle.com/javase/tutorial/networking/sockets/clientServer.html Regards On Thursday, October 4, 2012 3:57:58 PM UTC+10, Archana wrote: