MobileJava MobileSpring Android: Bringing Spring Components to Your Android Apps

Spring Android: Bringing Spring Components to Your Android Apps content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

Android has grown rapidly in recent years, increasingly challenging the iPhone in units sold and apps available. One major reason for the strong app presence on Android is its Java programming API, which allows the large number of Java developers to bring their existing skills from the server or the desktop to the mobile device.

However, bringing over your skills and bringing over your code are two different things. Most applications written today, particularly on enterprise servers, use popular frameworks that run on Java but are not included in the core Java language. If you wish to bring such an app to Android, you will need to replace all your app’s calls to the framework, which could take as long as simply rewriting the app from scratch.

Help is on the way. SpringSource, a company that supports Spring and several other popular open-source projects, has recently announced the creation of Spring Android. This is not a complete reimplementation of Spring, but rather a port of some of the most useful client-side components of Spring to Android. Their initial release includes a port of commons logging, which is internally used by a wide variety of projects, as well as RestTemplate, which significantly eases the development of RESTful client applications.

This article will show how you can add Spring Android to your app, and walk through an example of using it to quickly build a Twitter client.


Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends & analysis

Latest Posts

Related Stories