Difference between revisions of "Mobile App Dev 2021W: Assignment 3"

From Soma-notes
Jump to navigation Jump to search
Line 5: Line 5:
==Tasks==
==Tasks==


# [2] Add debugging log messages that report on the key activity lifecycle events.  The log key should be "Converter2A".
# [4] Add a Farenheit to Kelvin conversion, making sure that the conversion fails if the converted value would be less than 0 Kelvin (as nothing can be colder than absolute zero).  What does the app do when you give it -500F and you ask it to convert to Kelvin (with no other changes)?  Why?
# [2] Converter2A's layout is messed up when in landscape mode (the device turned horizontally).  Why?  What is wrong with the current layout?
# [2] Converter2A's layout is messed up when in landscape mode (the device turned horizontally).  Why?  What is wrong with the current layout?
# [2] Fix Converter2A's layout by converting it to a LinearLayout.
# [2] Fix Converter2A's layout by converting it to a LinearLayout.
# [2] Fix Converter2A's layout while keeping it a ConstrainedLayout.  Make sure your layout works in both portrait and landscape mode!
# [2] Fix Converter2A's layout while keeping it a ConstrainedLayout.  Make sure your layout works in both portrait and landscape mode!
# [4] When rotated, Converter2A doesn't remember the current state of the app.  Modify it so it saves and restores the selected conversion and the value being input when the main activity is destroyed and re-created.
# [4] When rotated, Converter2A doesn't remember the current state of the app.  Modify it so it saves and restores the selected conversion and the value being input when the main activity is destroyed and re-created.

Revision as of 16:54, 16 March 2021

This assignment is still being developed.

In this assignment you will be analyzing and extending Converter2A from Tutorial 6.

Tasks

  1. [2] Add debugging log messages that report on the key activity lifecycle events. The log key should be "Converter2A".
  2. [4] Add a Farenheit to Kelvin conversion, making sure that the conversion fails if the converted value would be less than 0 Kelvin (as nothing can be colder than absolute zero). What does the app do when you give it -500F and you ask it to convert to Kelvin (with no other changes)? Why?
  3. [2] Converter2A's layout is messed up when in landscape mode (the device turned horizontally). Why? What is wrong with the current layout?
  4. [2] Fix Converter2A's layout by converting it to a LinearLayout.
  5. [2] Fix Converter2A's layout while keeping it a ConstrainedLayout. Make sure your layout works in both portrait and landscape mode!
  6. [4] When rotated, Converter2A doesn't remember the current state of the app. Modify it so it saves and restores the selected conversion and the value being input when the main activity is destroyed and re-created.