Devices on same WiFi-LAN are no different than devices on any LAN. So your java's server-client program should work fine after a few adjustments. One suggestion though, inherit your server class from "Service", instead of activity so that you don't run into problems arising from different phases in activity lifecycle.
On Fri, Jun 24, 2011 at 1:59 PM, Michael Kuethe <[email protected]>wrote: > Kumar is right - nothing new in the socket coding. But potentially you have > to face issue regarding the connected/disconnected Status. > have a look at the class ConnectivityManager > connectiviyManager = (ConnectivityManager) context > .getSystemService(Context.CONNECTIVITY_SERVICE); > and the NetworkInfo > NetworkInfo ni = connectiviyManager.getActiveNetworkInfo(); > > > regards > > Michael > > -- > 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

