Due on: Thursday April 27, 11pm (STRICT)
CrowdGrader URL: https://www.crowdgrader.org/crowdgrader/venues/view_venue/3081
Submission instructions: Follow these instructions
You need to create an application consisting of three activities.
Each activity should display at the top its name: Activity 1, Activity 2, Activity 3, as a big string.
The activities will share information via an AppInfo object (see Lecture 3 and see the code for BackAndForthStudio).
The information shared consists in three strings, string1, string2, string3.
For i = 1, 2, 3, Activity i should:
Here is how Activity 2 should look like, more or less. The blue line is the input field where the user is typing the word "pear".
When the user presses Enter, the value stored in the input field should be stored in Appinfo, and displayed in the other activities.
When a user opens an activity, the initial value of the textfield (before the user edits it) should be the value stored in AppInfo for that activity. That is, if you are in Activity 1, write Orange in the field, go to Activity 2, and then come back to Activity 1, the editable field in Activity 1 should contain "Orange".
In other words, when an activity executes onResume, you should display string1, string2, string3 either in the fields for the respective strings, or as initial value of the editable field, as appropriate.
As an example, if the user finishes writing pear, and clicks on the button to go to Activity 3, this is how Activity 3 should look like:
See here for an example of AppInfo definition. The information in the AppInfo object should be written back to the SharedPreferences, and read upon initialization, so that if your app stops and is destroyed, no information is lost.
When you switch from one activity to another, please use the flag to clear the activity stack as done here.
You might find it easier to start your work from the BackAndForthStudio project.
If I had to do this assignment, I would do the following.