Spring for Android

Spring for Android is an extension of the Spring Framework that aims to simplify the development of native Android applications.

Quick Start
Fork me on GitHub

Spring for Android is a framework that is designed to provide components of the Spring family of projects for use in Android apps. Like all Spring projects, the real power of Spring for Android is found in how easily it can be extended.


  • A Rest Client for Android
  • Auth support for accessing secure APIs

Quick Start


The recommended way to get started using spring-android in your project is with a dependency management system – the snippet below can be copied and pasted into your build. Need help? See our getting started guides on building with Maven and Gradle.


The following example illustrates how to search Google:

// The connection URL 
String url = "https://ajax.googleapis.com/ajax/" + 

// Create a new RestTemplate instance
RestTemplate restTemplate = new RestTemplate();

// Add the String message converter
restTemplate.getMessageConverters().add(new StringHttpMessageConverter());

// Make the HTTP GET request, marshaling the response to a String
String result = restTemplate.getForObject(url, String.class, "Android");