159.336 dialer application for Android


159.336 Assignment 1 
Due 14
th
 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

 

  • 5
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值