Comparison of selected network communication methods on the Android platform
This paper is devoted to comparing three communication methods between mobile applications and servers. The analysis encompassed the results of six tests conducted using HTTP and HTTPS protocols, and server-socket technology. All sending times of data with various sizes between the client application and the server, and the impact of this operation on the processor load and battery use, were evaluated. The experiments consisted of sending and receiving a form, sending and receiving a large photo, and ensuring continuous communication to assess device use. To perform the analyses, an Android application was created to support the researched technology, while the server side was composed of programs written in Java, running on a Tomcat server. The conducted research made it possible to establish the best solution, which is server-socket technology.
HTTP; HTTPS; socket; Andoid; network communication
 A. Sawant, B. Meshram: Network programing in Java using Socket, Google Scholar, 2013.
 D. Naylor, A. Finamore, I. Leontiadis, Y. Grunenberger, M. Mellia, M. Munafo, K, Papagiannaki, P. Steenkiste: The Cost of the „s” in HTTPS, Google Schoolar, 2015.
 A. Serafinowicz: Android – historia prawdziwa, http://softonet.pl/publikacje/poradniki/Androidhistoria.prawdziwa, 1162, 2015.
 M. Oltrogge, Y. Acar, s. Dechand, M. Smith, s. Fahl: To Pin or Not to Pin – Helping App Developers Bullet Proof Their TLS Connections, Google Schoolar, 2015.
 J.Smołka: Programowanie aplikacji dla systemu Android, Politechnika Lubelska, 2014.
 B. Sosinsky: Networking Bible, Wiley Publishing, Inc.2009.
 T. Dierks, E. Rescorla: The Transport Layer Security (TLS) Protocol, RFC5246, 2008.
 http://edu.pjwstk.edu.pl/wyklady/mpr/scb/W8/W8.htm [20.01.2018]
 W. Frank Ableson, R. Sen, C. King, C. Enrique Ortiz: Android in action. Third editon, Manning Publications Co., 2011
 https://www.tutorialspoint.com/unix_sockets/what_is_socket.htm [01.01.2018]
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.