Preferences(Android)

  1. Using the DataStore class create an application that uses it to store the time when the application first opens. Have your application show this value on its MainActivity class screen. Add a button that sets the stored Timestamp to the current time and updates the dispaly. Here is the layout.