For this assignment I built an application that converts a person's age from any planet to any other planet. I have never developed for Android before so this was a lot of fun!
How It Works
When the application opens up, there is one main view where all of the functionality can be accessed in one place. At the top, there is an input text box, and a description telling the user to input his or her age in years. Below the text box are two spinners, one labeled "From" and one labeled "To." These signify the planets used in the conversion. At the bottom, there is a "Convert!" button, which takes the user's input age and converts it to the corresponding new age. There is also a short text which signifies to the user where to expect the age to appear, displaying the age once the first calculation is made.
In order to figure out the one's new age, a user simply enters his or her age into the box and selects the two planets for the conversion. For example below, I have entered my age on Earth, 21, which I would like to convert to my new age on Jupiter.
Then, the user presses convert, doing the calculation and displaying the new value at the bottom.
The app can be used continuously to calculate more values, and no resetting needs to occur.
The interaction can be viewed in the video below:
And the code is here:
Looking Ahead
With more time, I would improve the front end design of this application. The top portion is very far apart from though bottom, although for smaller screens this does not happen, and it most likely has a lot to do with the layout in android which I still need to learn in more detail. In addition, I would also add pictures of the planets, and display every one of them in a nice scrollable list like many modern applications today.
Comments