To Lecture Notes

IT 372 -- Apr 29, 2019

Review Questions

  1. Name as many events in the Activity Lifecycle as you can. Draw a diagram to show how these events are related to these activity states:
    Created Destroyed Paused Resumed Started Stopped
    
    Ans: See the Android Developer website:
        https://developer.android.com/guide/components/activities/activity-lifecycle.
  2. What is the android:hint property?
    Ans: It is gray text shown in an EditText widget, which disappears when the user starts typing in the edit text.
  3. What is the process for saving the app state and restoring it after the device or emulator is rotated?
    Ans:
  4. What is the process for starting a new activity in an app?
  5. If an onClick event handler is attached to more than one widget, how does the event handler know which widget caused the event?

ConstraintLayout vs. GridLayout

The Android Studio IDE

Practice with ConstraintLayout

The GridView Layout

StudentEntryForm Example

Array Adapters

More Android Widgets