NZUWI2024S_COMPX202
Assignment 3: Android Studio (Weighting: 20%)
Due date: Friday 21st June 2024 at 23:59
Submission instruction: As indicated below, you must work with a Git repository and uploadyour work on the university’s GitLab server. You also need to upload the final version of yourAndroid project to Blackboard as a ZIP file (from Android Studio, in menuFile>Export >Export to ZIP file…). The ZIP file should be named "G??A3.zip" where ?? isyour group number. The ZIP file should include a copy of your final README.md file.
Introduction
The goal in this assignment is to understand and implement an Android Studio App.
IMPORTANT: The assignment is group work. The usual rules on plagiarism fully apply: youcannot copy answers from any other students, or copy from the internet withoutacknowledgement. Cases of plagiarism will be strictly dealt with.
Part A: Creating An Android Java Project
The first stage is to create a new Android Java project. Name this project
Compx202A3_G<YourGroupNumber> (e.g. Compx202A3_G11). The Project will havethree activities (MainActivity, CommentActivity, and RateActivity) that are shown andescribed individually below. Some of the components/widgets/UI elements are for you toidentify.
- MainActivity
- The basic structure of MainActivity is shown in Figure 1.
- You should have your group number posted. NZUWI2024S_COMPX202
- The 3 buttons will serve as links to the remaining 3 activities.
- The 3 activities should be about sensors and use sensors discussed in the lecture Notes.
- Sensor1Activity
- An example structure of Sensor1Activity is shown in Figure 2.
- This is just an example.
- Sensor2Activity
- An example structure of Sensor1Activity is shown in Figure 3.
- This is just an example.
- Sensor3Activity
- An example structure of Sensor1Activity is shown in Figure 4.
- This is just an example.
Figure 1 Figure 2 Figure 3 Figure 4 NZUWI2024S_COMPX202
Question/Task 1: Show the complete code for MainActivity.java.
Question/Task 2: Explain Sensor1 and show the complete code for Sensor1Activity.java.
Question/Task 3: Explain Sensor2 and show the complete code for Sensor2Activity.java.
Question/Task 4: Explain Sensor3 and show the complete code forSensor3Activity.java.
Question/Task 5: Screencap every running activity, save them as images, and add them in
the Readme file later. Add also all images in your zip file.
Part B: Uploading to GitLab
The next stage is to create a project in GitLab, which will be your remote repository. Use thesame project name from Android Studio. Commit and push all your files.
Part C: Creating README.md
This stage is to create a ‘README.md’ document which will serve as the documentation foryour GitLab repository. It will also serve as your report for this assignment.
- In your new README file, add the following linesAssignment 3 by *your group number* (*your ID numbers*)
- You should see the text you just entered formatted as a heading. Leave a blank line and adda line with “## Question 1”. Write next your answers to Question 1.
- Do the same for the rest of the Questions (2-5).
- Do a final check to make sure you have committed and pushed your most recent work.Ensure that you can see your changes on GitLab.
- Include as a zip file the final version of your README.md file and all images on
Blackboard (Assignment 3). NZUWI2024S_COMPX202
Grading