100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
FIT2081 Questions and Answers / 2024 $10.99   Add to cart

Exam (elaborations)

FIT2081 Questions and Answers / 2024

 1 view  0 purchase
  • Course
  • Institution

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 backgrou...

[Show more]

Preview 2 out of 5  pages

  • February 1, 2024
  • 5
  • 2023/2024
  • Exam (elaborations)
  • Unknown
avatar-seller
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

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Certifiedacademics. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $10.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

73314 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$10.99
  • (0)
  Add to cart