Instant Spring for Android Starter

Leverage Spring for Android to create RESTful and OAuth Android apps
Preview in Mapt

Instant Spring for Android Starter

Anthony Dahanne

1 customer reviews
Leverage Spring for Android to create RESTful and OAuth Android apps
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.50
RRP $14.99
Save 29%
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.50
$29.99p/m after trial
RRP $14.99
Subscription
eBook
Start 30 Day Trial

Frequently bought together


Instant Spring for Android Starter Book Cover
Instant Spring for Android Starter
$ 14.99
$ 10.50
Instant Spring Security Starter Book Cover
Instant Spring Security Starter
$ 14.99
$ 10.50
Buy 2 for $21.00
Save $8.98
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781782161905
Paperback72 pages

Book Description

The possibility to connect to remote web services is a key feature for most Android apps. REST (Representational State Transfer) is the most popular architecture to provide web services to mobile devices and others. OAuth has recently become the web’s favorite way to authenticate and authorize users and apps, thanks to its capability to re-use popular web platforms accounts (Google, Facebook, Twitter). Spring for Android is an extension of the Spring Framework that aims to simplify the development of native Android applications.

"Instant Spring for Android Starterr" is a practical, hands-on guide that provides you with a number of clear step-by-step exercises, which will help you take advantage of the abstractions offered by Spring for Android with regard to REST (RestTemplate) and OAuth (OAuthTemplate). It will also introduce you to the bases of those architectures and the associated tooling.

This book gets you started using Spring for Android, first letting you know how to set up your workspace to include those libraries in your projects (with the Eclipse IDE and also with the popular building tool Maven) and then providing some clear and real life examples of RESTful and OAUth backed Android applications.

After introducing the technology, we’ll discover the different Message Converters provided (to consume JSON, XML, and Atom web services) and the main HTTP verbs to interact with RESTful webservices: GET, POST, DELETE, and UPDATE. We’ll also mention how to support HTTP Basic Auth, Gzip compression, and finally put in practice the OAuth workflow with a concrete example relying on the Google OAuth service provider to authenticate and authorize an app and users.

You will learn everything you need to consume RESTful web services, authenticate your users, and interact with their social platforms profiles from your Android app.

Table of Contents

Chapter 1: Instant Spring for Android Starter
So, what is Spring for Android?
Integrating it in an Android app
Quick start – RestTemplate
Quick start – OAuth
People and places you should get to know

What You Will Learn

 

  • Set up your Eclipse workspace to include third party libraries (such as Spring for Android)
  • Deal with dependencies using the Android Maven Plugin
  • Use m2e and its m2e-android connector to work with Maven based Android projects in Eclipse
  • Create an app connecting to a RESTful web service: using JSON, XML, and Atom messages
  • Create an app connecting to a RESTful web service: creating, deleting, updating, and retrieving data to and from this service
  • Enable HTTP BasicAuth and Gzip compression in your RESTful client app
  • Use the third party library Android Annotations to simplify your RESTful app code
  • Create an app authenticating the Google OAuth service provider and allowing access to the user basic and Google+ profiles

 

Authors

Table of Contents

Chapter 1: Instant Spring for Android Starter
So, what is Spring for Android?
Integrating it in an Android app
Quick start – RestTemplate
Quick start – OAuth
People and places you should get to know

Book Details

ISBN 139781782161905
Paperback72 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Twitter Bootstrap Web Development How-To Book Cover
Twitter Bootstrap Web Development How-To
$ 12.99
$ 9.10
Android 6 Essentials Book Cover
Android 6 Essentials
$ 23.99
$ 16.80
Git: Version Control for Everyone Book Cover
Git: Version Control for Everyone
$ 23.99
$ 16.80
AngularJS Web Application Development Blueprints Book Cover
AngularJS Web Application Development Blueprints
$ 29.99
$ 21.00
Apache Maven 3 Cookbook Book Cover
Apache Maven 3 Cookbook
$ 23.99
$ 16.80