Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 2 fuera de 5 páginas
Examen

FIT2081 Questions and Answers / 2024

Document preview thumbnail
Vista previa 2 fuera de 5 páginas

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

Vista previa del contenido

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

Información del documento

Subido en
1 de febrero de 2024
Número de páginas
5
Escrito en
2023/2024
Tipo
Examen
Contiene
Preguntas y respuestas
$11.39

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
smartchoices
4.8
(9)
Vendido
36
Seguidores
5
Artículos
4504
Última venta
4 meses hace




Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes