On Tue, Oct 16, 2012 at 1:48 PM, Mario Denote <[email protected]> wrote:
> Thanks. So if I choose Internet do I use a socket or i can use other ?

First, bear in mind that you *really* do not want to be opening a
server socket unless you have a *lot* of security experience (or have
a very large legal defense fund). That, plus the fact that direct
device-to-device communications via TCP/IP will typically only work if
they are on the same WiFi segment, means that you are probably better
off using some sort of middleman. An example would be two devices
interacting with each other over XMPP by means of a Jabber server.

That being said, whether you use raw sockets, some protocol layered
over sockets (e.g., HTTP), or some protocol layered over another
protocol (e.g., XMPP), is up to you.

(and, for those who will be pedantic and say that HTTP also is layered
over another protocol, it's protocols all the way down! :-)

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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