My SolarYou application has the same basic functionality as the default SolarYou application showed in lecture, with the addition of weight conversion and the ability to convert from any planet to all the other planets. Everything I will describe from here on will be the flow of how to get your age conversion. Conversion of weight works exactly the same.
The way you get your age conversions in my application is by selecting a planet from a Spinner drop down and inputting your age on that planet in an EditText.
You can then click a Button whose text is "See your age on other planets!". You will then see a ListView appear with your age converted for all other planets.
I decided to have the order of the ListView start with planets closest to the sun and end with planets furthest. The only exception to this is when you are converting from a planet that is not Earth. When this is the case, Earth shows up first in the ListView, and then the order is the same as before. I made this design decision because I figured what is most important to users is their age on Earth because that is, after all, where they reside (at least, I think).
If you want to update the ListView, simply enter a new age and/or new planet and click the Button again. For example, we can convert our age and weight on Mercury and Mars, respectively and see the conversions on all the other planets.
Some other random features I added were the iconography and the inability to input anything but numbers into the EditText. This removes the possibility of a user inputting negative values, as well as characters that are not numbers. Furthermore, on the device, when you touch the EditText to try and input a number, the keypad is only numeric.
Also, if you try and get a conversion by clicking the "See your age on other planets button" when there is no number inputted in the EditText, you get a prompt asking you to enter an age.
The application also works when rotated.
Here's a video to show you what I've described above:
Stuff I could not show you on the emulator is shown here on a Nexus 7:
Zip file:
Comments