Szczegóły ebooka

Instant Spring for Android Starter. Leverage Spring for Android to create RESTful and OAuth Android apps

Instant Spring for Android Starter. Leverage Spring for Android to create RESTful and OAuth Android apps

Anthony Dahanne

Ebook
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.
  • Instant Spring for Android Starter
    • Instant Spring for Android Starter
    • Credits
    • About the Author
    • About the Reviewer
    • PacktPub.com
      • Support files, eBooks, discount offers and more
    • www.PacktLib.PacktPub.com
      • Why Subscribe?
      • Free Access for Packt account holders
    • 1. Instant Spring for Android Starter
      • So, what is Spring for Android?
        • RestTemplate
        • Auth/Spring Social
        • What Spring for Android is not
      • Integrating it in an Android app
        • Minimal dependencies to add or use RestTemplate
        • Getting started with Eclipse and Spring for Android
          • Installing the ADT plugin
          • First example app
        • Using Maven to build a Spring for Android app
      • Quick start RestTemplate
        • Different message converters
          • MappingJacksonHttpMessageConverter
          • SimpleXmlHttpMessageConverter
          • RssChannelHttpMessageConverter
        • Gzip encryption
        • HTTP Basic authentication
        • The RESTful recipe app
          • RecipeList activity: listing all recipes stored on the server
          • RecipeEditor activity
        • Android annotations
      • Quick start OAuth
        • Developing a website or an app relying on a service provider
        • The OAuth dance
        • Spring for Android Auth module
        • An OAuth example using Google
      • People and places you should get to know
        • Official sites
        • Articles and tutorials
        • Community
        • Blogs
        • Twitter
  • Tytuł: Instant Spring for Android Starter. Leverage Spring for Android to create RESTful and OAuth Android apps
  • Autor: Anthony Dahanne
  • Tytuł oryginału: Instant Spring for Android Starter. Leverage Spring for Android to create RESTful and OAuth Android apps
  • ISBN: 9781782161912, 9781782161912
  • Data wydania: 2013-01-25
  • Format: Ebook
  • Identyfikator pozycji: e_2wue
  • Wydawca: Packt Publishing