Abstract
A majority of Android applications work with data, either generated or consumed by the user. In most cases, the amount of data is too great to store on the device locally, so we need a way to keep data somewhere else and retrieve it. Web services provide this functionality by exposing application programming interfaces (APIs) on remote servers that our Android applications consume. In this chapter you will learn how to access those APIs and then how to build web services yourself, securely. But first you need to understand web services in a general way. Throughout the chapter, we will refactor our ToDo Android application, moving the data storage from a local SQLite database to a web service hosted in the cloud.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2014 Godfrey Nolan, Onur Cinar, and David Truxall
About this chapter
Cite this chapter
Nolan, G., Cinar, O., Truxall, D. (2014). Web Services. In: Android Best Practices. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-5858-2_8
Download citation
DOI: https://doi.org/10.1007/978-1-4302-5858-2_8
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-5857-5
Online ISBN: 978-1-4302-5858-2
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)