Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 5 pages
Exam (elaborations)

FIT2081 Questions and Answers / 2024

Document preview thumbnail
Preview 2 out of 5 pages

FIT2081 Questions and Answers / 2024 List two differences between activities and services in Android applications - ANSW Activities are a single, standalone module of an application which correlates to a single use interface screen. Whereas, a service are the processes that run in the background and don't have a user interface What is an content resolver? - ANSW Content Resolver is the single instance in an application that provides access to your content providers for the users What is an content provider? - ANSW The content provider manages and implements a set of shared app data List three components that are activated by Intents - ANSW Activities, Services and Broadcast Receivers

Content preview

FIT2081 Questions and Answers / 2024

List two differences between activities and services in Android applications - ANSW
Activities are a single, standalone module of an application which correlates to a single
use interface screen. Whereas, a service are the processes that run in the background
and don't have a user interface

What is an content resolver? - ANSW Content Resolver is the single instance in an
application that provides access to your content providers for the users

What is an content provider? - ANSW The content provider manages and implements a
set of shared app data

List three components that are activated by Intents - ANSW Activities, Services and
Broadcast Receivers

Why does an app complied against API level 27 on a device running pie work? - ANSW
Because pie runs with an API level of 28 so it can run apps compiled with previous
versions (forward-compatible)

Can the app be fixed without changing the API level of the app and the device? -
ANSW Not necessarily but it can be fixed by changing the API level of the app but it will
affect all versions of Android. Should use support library

Should we develop the app multiple times for different languages? - ANSW No,
because it will be tricky and confusing for the user but I would use Resources because it
gives you the ability to translate the strings to other languages in the XML

What will happen to the back stack if the user presses the back button? - ANSW The
current activity will be removed from the top of the stack resulting in the activity being
destroyed and the previous activity is restored and back on the screen

What is the difference between task and activity in Android Applications? - ANSW A
task is a collection of activities that users interact with when performing a certain job.
Whereas, an activity is an single, standalone module of an application which correlates
to a single use interface.

List the callbacks in sequence that occur for a reorientation event - ANSW onPause,
onSaveInstanceState, onStop, onDestroy, onCreate, onStart, onRestoreInstanceState
and onResume

List the callbacks in sequence that occur when the code executes the finish() method -
ANSW onPause, onStop, onDestroy

, Whats the difference between the two callbacks (reorientation callback and finish
callback) ? - ANSW When an mobile is reorientated, the onSaveInstanceState callback
is triggered to save the instance state data whereas the finish() method doesn't save the
instance data

What is the effect of calling super() in Lifecycle callbacks? - ANSW It allows us to
override lifecycle callbacks with a call to their super().

Provide an example of calling super() in Lifecycle callback? - ANSW An example would
be using super.OnCreate() which allows the onCreate() method to override other
methods

What is the difference between getPreferences() and getSharedPreferences()? -
ANSW getPreferences() is used when there is only one preference file for the activity.
getSharedPreferences() is used when you need multiple preference files

When and how is the API level initially set on an emulator? - ANSW When the emulator
device is created/set up initially in the AVD manager

Why is the measurement redundant? - ANSW The constraint is redundant because it is
set to match the constraint horizontally or vertically so it will fill the available area

What is the difference between styles and themes? - ANSW Attributes assigned to a
view via style will only apply to that view. Whereas, attributes assigned it via a theme
will apply to that view along with all its children.

What is the main difference between guidelines and barriers in UI design? - ANSW
Barrier's position is flexible and is always based on size of UI elements. Whereas, a
guideline's position is fixed

Briefly describe two ways you can link a button to its OnClick() handler - ANSW You
can either manually code the OnClick method to perform an certain method or you can
implement the method by adding the method manually in the onClick settings in the
layout settings

What is the purpose of super.OnBackPressed()? - ANSW The purpose of
super.OnBackPressed() is to override the OnBackPressed() method and display the
message when the back button is pressed.

Why return true after handling an options menu's menu item click? - ANSW true has to
be returned so Android knows the callback was executed efficiently and doesn't go to
another to another view

What is the difference between onOptionsItemSelected and onNavigationItemSelected?
- ANSW onNavigationItemSelected is called when an item in the navigation menu is
selected. Whereas, onOptionsItemSelected is used for the callback of the options menu

Document information

Uploaded on
February 1, 2024
Number of pages
5
Written in
2023/2024
Type
Exam (elaborations)
Contains
Unknown
$11.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
3
Followers
1
Items
327
Last sold
5 months ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions