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

