FYI two phones communicating is *not* a good use case for a server...

As for your question, you can easily answer that by a quick Google
search "eclipse multiple emulators:"

http://stackoverflow.com/questions/1761246/possible-to-safely-run-multiple-android-emulators-on-the-same-machine-and-commun

Kris

On Wed, Dec 12, 2012 at 11:25 PM, Sara Ali <[email protected]> wrote:
> Actually I want two android phones to communicate with each other. For that
> purpose, one phone would need to behave as a server.
> Yeah, I now have added the internet permission, it does not crash now but I
> am not getting any output.
> I don't know how to run two android projects simultaneously, means, to run
> two emulators (server and client) at the same time. Please tell me how can
> do it.
>
>
> On Thu, Dec 13, 2012 at 8:37 AM, Kristopher Micinski
> <[email protected]> wrote:
>>
>> 1.  You probably shouldn't be writing a server as an Android app.
>> That's just a bad idea.  It's going to kill the battery unless you
>> have really good motivation for doing so...
>> 2.  You forgot to include the internet permission.
>>
>> Kris
>>
>> On Wed, Dec 12, 2012 at 9:28 PM, s_ali <[email protected]> wrote:
>> > Hi!
>> >
>> > I am trying to make a client server scenario in android. In client
>> > project,
>> > emulator is acting like a client, and its working fine. But when I run
>> > the
>> > server code (using emulator), it gives an exception. The server project
>> > gives the correct output when I run it as a simple java project.
>> > The exception occurs on the execution of this line,
>> > socket = serverSocket.accept();
>> >
>> > Please tell me what to do to get rid of the exception.
>> > Thanks in advance.
>> >
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" 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-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 [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-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 [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-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 [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-developers?hl=en

Reply via email to