首页 > 其他分享 >COMPX202 Android Studio

COMPX202 Android Studio

时间:2024-06-20 10:56:24浏览次数:11  
标签:Figure Question COMPX202 Studio file Android your

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.

  1. 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.
  1. Sensor1Activity
  • An example structure of Sensor1Activity is shown in Figure 2.
  • This is just an example.
  1. Sensor2Activity
  • An example structure of Sensor1Activity is shown in Figure 3.
  • This is just an example.
  1. 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.

  1. In your new README file, add the following linesAssignment 3 by *your group number* (*your ID numbers*)
  1. 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.
  1. Do the same for the rest of the Questions (2-5).
  2. 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.
  1. Include as a zip file the final version of your README.md file and all images on

Blackboard (Assignment 3). NZUWI2024S_COMPX202

Grading

标签:Figure,Question,COMPX202,Studio,file,Android,your
From: https://www.cnblogs.com/qq99515681/p/18258241

相关文章

  • 在 Visual Studio 2022 (Visual C++ 17) 中使用 Visual Leak Detector
    1问题描述1.1内存泄漏的困扰和解决之道在C/C++程序开发过程中,开发者受益于C/C++的强大,与此同时也承受着C/C++程序开发的额外风险。像Java、C#这类带GC(内存垃圾回收)的编程语言,在内存管理方面,给开发者提供了“保姆级”的封装,开发者不用太关注内存泄漏问题[1]。但是C/C++的哲学......
  • Visual Studio 2022 Typescript 代码错误提示故障问题
    近日编码过程中发现,项目中所有.ts、.tsx文件中的代码修改过后仍有错误提示,甚至注释掉代码后错误提示仍在原位。症状如下:VS内置Typescript语法检查和eslint支持,两个语法检查服务可同时运行,并同时发送错误提示和改进建议。eslint正常运行,无故障。选项中禁用后重启VS2022,eslint不......
  • Android Java开发异步
    目录AndroidJava开发异步为什么需要异步编程?AsyncTask类异步编程的注意事项总结AndroidJava开发异步在Android应用程序中,异步编程是至关重要的,它可以确保应用的流畅性和响应性。在本文中,我们将探讨Android开发中的异步编程,以及如何使用Java语言进行异步操作。为什......
  • Visual Studio + Qt项目 数组超界不会报错。 堆栈 Cookie 检测代码检测到基于堆栈
    使用vs+Qt项目时,数组超界不会崩溃和报错的问题。 开启以下2个即可。  注意:1.启用了地址擦除系统会造成QT的异常崩溃,原因未知。2.有时会报cookie的错误,数组超界了,在退出函数时才会报错。   ......
  • Android嵌套滑动NestedScrollingChild以及NestedScrollingParent处理流程
    publicinterfaceNestedScrollingChild{publicvoidsetNestedScrollingEnabled(booleanenabled);publicbooleanisNestedScrollingEnabled();publicbooleanstartNestedScroll(intaxes);publicvoidstopNestedScroll();publi......
  • 如何在vTestStudio里读取扩展数据(ExtendedData)
    我们使用1906+故障码+扩展信息序号来获取故障码扩展信息,如何在vTestStudio的testtable中使用testcommand读取,有两种方法:1.使用DiagnosticService2.使用FaultMemoryDTCs要注意如果使用FaultMemoryDTCs这个命令,默认EnvironmentData发送的命令是1904(快照信息)......
  • Camtasia Studio 2024软件最新版下载【安装详细图文教程】
    ​Camtasia是美国TechSmith公司出品的一款集电脑屏幕录制、视频剪辑为一体的软件套装。同时包含Camtasia录制器、CamtasiaStudio(编辑器)、Camtasia菜单制作器、Camtasia剧场、Camtasia播放器和Screencast的内置功能。安装包获取地址:CamtasiaStudio2024win版:​......
  • 【Android面试八股文】SSL握手的过程都经历过什么?
    文章目录一、为什么要设计SSL/TLS?二、SSL/TLS的历史概述SSL(SecureSocketsLayer)TLS(TransportLayerSecurity)总结三、SSL/TLS加密过程中如何保证公钥不被篡改?公钥加密计算量太大,如何减少耗用的时间?3.1如何保证公钥不被篡改?3.2公钥加密计算量太大,如何......
  • 【Android面试八股文】谈谈你对TCP 流量控制与拥塞控制的理解
    文章目录一、流量控制1.1流量控制的概念1.2滑动窗口1.3零窗口二、拥塞控制2.1拥塞控制的概念2.2慢启动2.3拥塞避免2.4快重传与快恢复2.4.1快重传2.4.2快恢复三、总结TCP的拥塞控制和流量控制虽然采取的动作很相似,但拥塞控制与网......
  • 【Android面试八股文】你说一说什么是双亲委托机制?为什么需要双亲委托机制?
    一、双亲委托机制1.1双亲委托机制概述双亲委托机制是指当一个类加载器收到一个类加载请求时,该类加载器首先会把请求委派给父类加载器。如果父类加载器还存在父类加载器,则会一直向上委派,直至最终交由顶层的启动类加载器完成类加载,每个类加载器都是如此,只有在所......