Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

communication protocols used by Android

 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use TCP Socket or use bluetooth (P2P)

-Raihan
Oregon,USA
 
Author
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic