Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

communication protocols used by Android

 
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
 
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
 
Author
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.
 
Good night. Drive safely. Here's a tiny ad for the road:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic