Homework for an android programming class.