This article was originally written and posted in October 2008. However, I’ve retired this blog. Because of that, as of December 2011 I’ve copied the complete text of the original article over to my new web site, just click here to read it. As of December 2011 the code was tested and still works correctly. Note I’m an iOS developer nowadays, not a Java developer, so regretfully I can’t offer any support nor updates if it doesn’t work for you. Please feel free to read, comment, and link to the article at its new home.
Looking for just the source code? It’s available in zipped format, just click here to download it from my new web site.