Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

FIT2081 Questions and Answers / 2024

Beoordeling
-
Verkocht
-
Pagina's
5
Cijfer
A+
Geüpload op
01-02-2024
Geschreven in
2023/2024

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

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

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

Geschreven voor

Vak

Documentinformatie

Geüpload op
1 februari 2024
Aantal pagina's
5
Geschreven in
2023/2024
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$11.39
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF


Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
smartchoices Chamberlain College Of Nursing
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
36
Lid sinds
5 jaar
Aantal volgers
5
Documenten
4499
Laatst verkocht
1 maand geleden

4.8

9 beoordelingen

5
7
4
2
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen