首页 > 其他分享 >159.336 application for Android

159.336 application for Android

时间:2024-08-03 08:58:10浏览次数:8  
标签:159.336 number your will application Android app must

159.336 Assignment 1

Due 14th August 2024

For this assignment you need to write a simple dialer application for Android to

make phone calls.

The dialer must have the following UI elements:

A number display to show the phone number which will be called.

A keypad with 12 keys (0-9, * and #), pressing one of these keys will

add a character to the number.

A delete button that deletes the last character of the number.

A “Call” button to place a phone call.

A simple implementation of this UI could look like the layout on the right.

Your app doesn’t have to look like this but it must have the same functionality.

When the call button is pressed, the dialler should place a phone call using an

Intent with action: Intent.ACTION_CALL and a data URI containing

“tel:”+number.

Make sure your app obtains permission to make phone calls

(Manifest.permission.CALL_PHONE) at runtime and that your app works on

devices with API level 24 and later.

Make sure your app behaves correctly when the device is rotated (including

while the app is running) and the app is usable on devices with different screen

sizes.

You must only have a single Activity in your app.

Your app must also accept ACTION_DIAL intents by registering an intent filter for the scheme “tel”, to test this you will need

to do:

am start -a android.intent.action.DIAL -d "tel:094140800"

from an adb command line shell.

Submit your assignment on Stream. You must submit a zip file containing a clean source tree. To do this, use “File..Export to

Zip File...” in Android Studio. You do not need to submit an apk. Do not use any libraries other than those included in the

latest Android SDK. You must use Java for this assignment, submissions using Kotlin will not be marked. You will lose marks

if you submit a zip which was not created by Android Studio or any other format (such as rar or 7z). Marks will be deducted

for zip files which do not build correctly. Do not change the top level gradle build file.

This is an individual assignment, you can not work in groups. Marks will be awarded for well written programs. Use comments

in your code to document it. Marks will be subtracted for plagiarism, late submission and bad documentation.

This assignment is worth 10% of the total marks for the course.

M Johnson 2024

标签:159.336,number,your,will,application,Android,app,must
From: https://www.cnblogs.com/vx-codehelp/p/18340002

相关文章

  • android12编译三方提供的bin文件,通过selinux配置并实现rc开机启动
    为三方bin建立工程在vendor/自己公司目录下建立工程文件夹,我这里以CarpalyMonter工程,新建如下文件CarplayMonitor为三方bin文件Android.mk模块编译配置如下:LOCAL_PATH:=$(callmy-dir)include$(CLEAR_VARS)LOCAL_MODULE:=carplaymonitor #模块名字LOCAL_SRC......
  • Android开发 - BrowseFragment 类解析
    BrowseFragment是什么例如电视应用屏幕上有很多行,每行显示一组视频,比如“热门电影”、“新剧集”、“推荐给你”等。每行可以左右滚动,显示不同的视频缩略图。BrowseFragment就是用来创建这种界面的主要功能每行有一个标题:告诉你这行内容是什么,比如“热门电影”每行可以滚......
  • Android开发 - RecyclerView 类详解
    什么是RecyclerViewRecyclerView是Android的一个控件,用来展示长列表或网格的内容,它比以前的ListView更加灵活和高效列表展示:想象你在手机上浏览一个长长的商品列表或图片网格。RecyclerView就是用来展示这样的内容的控件高效显示:如果你有一万件商品,RecyclerView不会一......
  • 无法将为“Microsoft.Office.Interop.Word.ApplicationClass”的 COM 对象强制转换为
    原文链接:https://blog.csdn.net/Castlehe/article/details/1243806481.错误原因安装了多版本的Office安装过WPS后没正常卸载2.解决方式2.1office多版本问题导致的以下四个操作基本覆盖常见原因了,可以从2.1.1尝试,每尝试一种,就去试一下看问题解决了没有,如果已经解决了,其他操作就......
  • Android 11 关于按键拦截/按键事件处理分享
    系统在frameworks/base/services/core/java/com/android/server/policy/PhoneWindowManager.java处理按键事件,不管是物理按键还是SystemUI的nav_bar上的虚拟按键(使用了KeyEvent类中的,比如:KeyEvent.KEYCODE_VOLUME_UP).主要注意的有两个函数:interceptKeyBeforeDispatching......
  • Android 自定义图片拖动、缩放、旋转
    Android图片拖动、缩放、旋转图片拖动定义一个类,继承AppCompatImageViewpublicclassMyImageViewextendsAppCompatImageView{//实现方法publicMyImageView(Contextcontext){this(context,null);}//实现方法publicMyImageView(Cont......
  • Android开发 - (适配器)Adapter类中ArrayObjectAdapter实现类详细解析
    简介用于AndroidTV的Leanback库,用于绑定对象数组到UI组件具体作用ArrayObjectAdapter是RecyclerView和Adapter系列中用于处理列表数据的一种适配器类型,主要用于AndroidTV的Leanback库中的BrowseFragment、DetailFragment和PlaybackOverlayFragment等......
  • Java计算机毕业设计基于Android的自闭症康复训练APP设计与实现(开题报告+源码+论文)
    本系统(程序+源码)带文档lw万字以上 文末可获取一份本项目的java源码和数据库参考。系统程序文件列表开题报告内容研究背景自闭症,作为一种复杂的神经发育障碍,影响着全球数百万儿童及其家庭。自闭症患者在社交互动、沟通表达及行为模式上常表现出显著困难。随着移动技术的飞......
  • 学习Android-2024-08
    学习Android-2024-08-01今天内容没有具体在程序中验证,可能存在问题。明天验证。1.打印日志1.1共5个级别,Log.e、Log.w、Log.i、Log.d、Log.v,重要性依次降低。例如Log.v会看到前面Log.e、Log.w等所有的信息。而Log.e只会看到Log.e的信息。1.2输出时打的tag,利于在控制台进行搜索......
  • Androidstudio开发,购物商城app 实现商品详情页(六)
    文章目录1.涉及到的技术点2.代码实现过程3.运行效果图4.参考学习文章相关视频教程在某站上面(......