Comparison of selected network communication methods on the Android platform

Przemysław Żydek

przemekkzydek@wp.pl
Institute of Computer Science, Lublin University of Technology, Nadbystrzycka 36B, 20-618 Lublin, Poland (Poland)

Jakub Smołka


Institute of Computer Science, Lublin University of Technology, Nadbystrzycka 36B, 20-618 Lublin, Poland (Poland)

Abstract

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.


Keywords:

HTTP; HTTPS; socket; Andoid; network communication

[1] http://zstzbaszynek.pl/blog/2021,era-systemow-klient-serwer/[11.01.2018]
[2] A. Sawant, B. Meshram: Network programing in Java using Socket, Google Scholar, 2013.
[3] 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.
[4] A. Serafinowicz: Android – historia prawdziwa, http://softonet.pl/publikacje/poradniki/Androidhistoria.prawdziwa, 1162, 2015.
[5] 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.
[6] J.Smołka: Programowanie aplikacji dla systemu Android, Politechnika Lubelska, 2014.
[7] B. Sosinsky: Networking Bible, Wiley Publishing, Inc.2009.
[8] T. Dierks, E. Rescorla: The Transport Layer Security (TLS) Protocol, RFC5246, 2008.
[9] http://edu.pjwstk.edu.pl/wyklady/mpr/scb/W8/W8.htm [20.01.2018]
[10] W. Frank Ableson, R. Sen, C. King, C. Enrique Ortiz: Android in action. Third editon, Manning Publications Co., 2011
[11] https://www.tutorialspoint.com/unix_sockets/what_is_socket.htm [01.01.2018]
Download


Published
2018-11-30

Cited by

Żydek, P., & Smołka, J. (2018). Comparison of selected network communication methods on the Android platform . Journal of Computer Sciences Institute, 8, 247–251. https://doi.org/10.35784/jcsi.690

Authors

Przemysław Żydek 
przemekkzydek@wp.pl
Institute of Computer Science, Lublin University of Technology, Nadbystrzycka 36B, 20-618 Lublin, Poland Poland

Authors

Jakub Smołka 

Institute of Computer Science, Lublin University of Technology, Nadbystrzycka 36B, 20-618 Lublin, Poland Poland

Statistics

Abstract views: 222
PDF downloads: 156