Android TabActivity with two list views

Often times when creating an activity with tabs, it’s easy to have a separate activity for the tab content.  However, things get tricky when those activities need to interact with one another.

So the solution is to create a tabactivity with views (instead of activities) as the tab content.  We see a very simple example of this in the official Android tutorial Hello, TabWidget.

In this tutorial, we will create a slightly more advanced application.  We will have two listviews as the content of a tabactivity and have them interact with one another (basically by clicking the items of one list view will add them to the second list view). Continue reading

Draft Punk Android App

I published a new app today for Android.  It’s targeted for the fantasy sports fan like me.  Every year, I do an offline draft for my fantasy football league.  The problem with offline drafts though, is that you have to fumble around with various paper cheatsheets or internet printouts and make sure you cross out every player drafted.  The worst is getting hassled from your buddies when you pick a player already drafted.  So what’s the solution to all of this – the Draft Punk App.
Continue reading

Border Wait Android App

A buddy at work often commutes to Mexico and noticed there weren’t any apps (iPhone or Android) that provided the current wait times to return to the U.S.  Since the customs and border patrol web site provides those times, I figured I could put together an Android app listing all the borders and their current wait times.

The result is Border Wait for Android, and is available at the Market now.
Continue reading

Fantasy football drafter GUI

Drafter screenshot

Last football (fantasy) season, my league had a live draft.  I didn’t want to do the old magazines, web printouts, highlighter, scratch paper, etc deal,  so I decided to write a simple GUI that showed me the fantasy ranks from various online sports sites.  Of course, once a player is removed, I wanted to eliminate him from the list and see only the available players.

The end result was a nice Java Swing GUI football draft tool that had the following features:

  • View the rankings from a variety of sources
  • Hide/show taken players as the draft moves on
  • Add players to an interested in list
  • Add players to your team list
  • Sort by position, projected points, name, etc.
  • Search player rankings table.
  • View additional details about player in web browser from any source.
  • Operate a client/server mode, where 1 server drafter can hide players and all connected clients reflect those changes.

I opened sourced the project on google code:  http://code.google.com/p/ff-drafter/

I’m thinking bigger for next year with maybe some smarts thrown into the ranking algorithm.  I’d like to dynamically re-rank players based on the outcome of the draft.  Maybe this tool will one day turn into a mobile Android or iPhone app – so be on the lookout.

Burkard Keller Trees

I was reading through the blog “Damn Cool Algorithms, Part 1: BK-Trees” by Nick Johnson and I was intrigued about burkard keller tree structure. (http://blog.notdot.net/2007/4/Damn-Cool-Algorithms-Part-1-BK-Trees)

It allows you to quickly search a tree of words (or other Objects) to find matches within a specified amount of “closeness”.  It is a much more efficient way of searching a dictionary of related words used in a spell checker or search term suggester application.   I decided to implement the algorithm myself in Java and posted the result to google code:

http://code.google.com/p/java-bk-tree/

My Projects

Well I’ve been writing and coding many personal projects on the side and decided to post about a few of the better ones.  Hopefully, I’ll keep this blog going with the latest and greatest.

– Josh