Source Code

All the open source projects that are hosted on developerlife will be presented here for quick access to the source code… there are tutorials that go into the details of how to use these projects. We hope you find the code useful. If you’d like to contribute to these projects, click here. All the code is released under Apache Open Source License v2.0. We will update this page regularly, and add lots of code that we’re working on, so please bookmark it and check back often. The following is the license that applies to all the code that’s available for download on this site. If you don’t agree with the terms of the license then do not download/use the source code.

Copyright 2006-2010 ScreamingToaster LLC.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use the files (source code, resource bundles, etc) distributed
on developerlife.com except in compliance with the License.

You may obtain a copy of the License here.

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Accessing weather.com’s XML weather feed using Java

Weather.com provides weather forecast data over the web, in XML format. We’ve written code that makes it trivial to access this data from Java code. Click here to download the source code. Here’s the tutorial to help you use this code in your projects.

GWT widget to display weather information from weather.com

We’ve created a reusable GWT app that can be embedded in any web app. It leverages the weather.com service adapter that’s listed above. Click here to download the source code. Here’s a tutorial to help you use this code in your projects.

GWT helper/utility class

The GWTUtils class is used the GWT tutorials on the site, and is a collection of helper functions to make your life easier, by allowing you to easily add/remove elements from the DOM, display messages while your app loads, get URL parameters, and other functions that you might find very useful when working with GWT. You can download it here. We will provide a module that you can download and import, when this matures a bit more. To see how to use it see these tutorials – RSS Reader App, Hello World with IDEA.

The Task API

The Task API is a very easy to use and powerful API that allows novices to work with background tasks in Java RIAs. Easily create tasks and monitor their progress and cancel them at any time. Easily manage multiple tasks. Create network aware tasks and recurring tasks, and much much more! To learn how to use it, read this tutorial – Task API – Quick Start Guide. Download it here. Android and JavaME implementation coming soon.

GeoIP services

This ZIP file contains classes that will help you access GeoIP services from MaxMind and ippages, as well as access Google Static Maps API in your Java applications. Directions on how to use the classes in this ZIP file are provided in the following tutorials: MaxMind GeoIP, ippages GeoIP, Google Static Maps.

Android helper/utility class library

The AndroidUtils.zip file contains a set of classes that are quite useful when writing software for Android. Classes are provided that make it easy to create Activities with animations, easily create sub-Activities without having to worry about CorrelationIDs, etc. There are quite a few tutorials that leverage this library, so consult them to check out it’s usage, eg: here, here, here, and here. All the interesting classes are in com.developerlife.Utils package. There are supporting classes in com.developerlife.Task.