In this lab, I build upon the previous labs and incorporate additional options for the controls, use radio buttons, and use Java and if-else statements to control logic in this weight conversion application. Changing the application icon is also discussed. Our apps continue to progress and build upon previous lessons. We can begin to see more sophistication and capabilities as new features and tools are introduced through these labs. The full set of labs can be found on my Android Boot Camp page on my website.
In this lab, I incorporate user input, the use of variables in Java, and the use of a spinner as a selection box for the user to create a simple app to simulate the purchase of concert tickets. This app definitely starts digging back into Java fundamentals. The full set of labs can be found under the Android Boot Camp page of this site.
In this exercise, I build a Youth Hostel App that displays information about a given youth hostel. I couldn’t resist finding a hostel in Modena, Italy as I can’t wait to return to my favorite place to visit (well, besides Disney World!). The Italian countryside is probably the most picturesque places I have seen on this planet. This Android app is a continuation of my post from last week, so consider this practice if you’ve been following along. The next lesson on the docket includes input from the user, so stay tuned.
Lab 2: Simplify! The Android User Interface
In this 2nd lab, an application will be developed that includes a button action to move from the main screen to a 2nd screen. Widgets such as TextView, buttons, and ImageView will be used to build the application in conjunction with the strings.xml file and Translations Editor. To do this, a 2nd activity will be created that includes the editing of a new Java class file. To follow along with this lab, an image file is used that can be downloaded. The lab will be capped off by testing our new recipe app in the virtual emulator.
If you’re tuning in for the first time, you can start from the beginning on my Android Boot Camp page.