This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Getting started with Java programming language and have Ashish Sarin & J Sharma on-line!
See this thread for details.
Win a copy of Getting started with Java programming language this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

communication protocols used by Android  RSS feed

 
Jeff Walker
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark,
I am interested in learning about how Android will communicate with other devices.
Being Java based, does it use its own protocol lying on top of http/s, or perhaps can it use web services (SOAP), or perhaps something else?

Also, does your book show any examples of Android to Android (A2A) comms?
(Did I just coin a new acronym ??)
dream_ryder
 
Raihan Masud
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use TCP Socket or use bluetooth (P2P)

-Raihan
Oregon,USA
 
Mark L. Murphy
Author
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am interested in learning about how Android will communicate with other devices.


Me too!

Being Java based, does it use its own protocol lying on top of http/s, or perhaps can it use web services (SOAP), or perhaps something else?


Java sockets (TCP) are available to you, and you can do pretty much whatever you want with them. There are two HTTP APIs available (URLConnection and Apache's HttpClient). However, there is no SOAP client built in.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!