15/06/2021 Week 9: Workshop Quiz: Attempt review
FIT2081 Mobile application development – S1 2021
Dashboard / My units / FIT2081_S1_2021 / Assessments / Week 9: Workshop Quiz
Started on State Completed on Time taken Grade
Print friendly format
Question 1
Monday, 3 May 2021, 9:33 PM Finished
Monday, 3 May 2021, 10:29 PM 55 mins 31 secs
10.00 out of 10.00 (100%)
Question 1
Complete
Mark 10.00 out of 10.00
Q1 – a) What should you use to transform a LatLong point into a street address.
Reverse geocoding should be done in a geocoder instance’s getFromLocation method to translate the LatLong value to an
address. Reverse geocoding is the process of transforming a (latitude, longitude) coordinate into a (partial) address.
Comment:
(Q1=100% Q2=100% Q3=100% )
Question 2 Complete Not graded
https://lms.monash.edu/mod/quiz/review.php?attempt=19686856&cmid=8331155 1/3
15/06/2021 Week 9: Workshop Quiz: Attempt review
Question 2
b) What permission does WebView require to work and where to place it?
Before WebView requires to works, this app must have access to the Internet. To get internet access, request the INTERNET permission in the manifest file.
To add a webview to the app in an activity’s oncreate( )method. Set up the WebView to allow permission and load HTML with loadUrl():
WebView myWebView = (WebView) findViewById(R. id. webview); myWebView. loadurl(” “);
Question 3 Complete Not graded
Question 3
Q2- a) How can an input parameter be accessed in doInBackground?
After it is passed into doInBackground, the parameter behaves like an array, so the index is used to access the input parameter (for example, String selectedCountry = params[0])
b) When and on what thread does doInBackground execute?
After execute() is called and on the background thread.
c) When and on what thread does onPostExecute execute?
After doInBackground finishes and on the main UI thread.
Question 4 Complete Not graded
Question 4
Q3 – a) Briefly explain the role of the statement at line 2 in the following piece of code.
In line 2 the setWebViewClient plays a very important role which is to set the webViewClient which will receive all the requests and notifications made by the different applications installed on the Android phone.
b) Wh ill h if d l i ?
https://lms.monash.edu/mod/quiz/review.php?attempt=19686856&cmid=8331155 2/3
15/06/2021 Week 9: Workshop Quiz: Attempt review
b) What will happen if you delete it?
If delete the line then the default handler will be used to receive the requests and notifications which is not as efficient. This webpage is not available in this app or Andriod system.
Question 5 Not answered Not graded
Question 5
◄ Week 8: Workshop Quiz
Jump to…
Week 10: Workshop Quiz ►
https://lms.monash.edu/mod/quiz/review.php?attempt=19686856&cmid=8331155 3/3