Fichas
DSG
Fichas del conjunto (11)
- 1What is the difference between implicit and explicit intent?Implicit Intents do not directly specify the Android components which should be called, it only specifies action to be performed
Explicit intents are used in the application itself wherein one activity can switch to another activity - 2What is an activity?UI component of an application
2 parts : the class and the xml - 3What is activity life-cycle?it contains some methods we use to track a
state of the activity. - 4Order of Activity Life Cycle
- 5What is the difference between onStart and onResume?you can start on start but only interact after onResume :
suppose we have a button: on the onStart we Can see it; only after
onResume we can interact with it. - 6activity flow from a to b: then hit back arrow in the bottom of screenfrom launch:
create(A)
start(A)
resume(A)
from button press to launch activity B
paused(A)
create(B)
start(B)
resume(B)
stop(A)
when you press back button
pause(A)
restart(A)
start(A)
resume(A)
stop(B)
destroy (B) - 7What is use of android manifest.xml file?It’s the application level contribution file, which contains the activities and metadata used in the application.
:(metadata) app name, launch icon, permissions, list of all activities , services - 8Best place to write static string content?Strings.xml
- 9What is the String.xml file? Similarly: colors.xml? Similarly: styles.xmlglobal file used to get common string names in the activity
colors.xml: used to store common colors used
style.xml: global style-sheet just like a CSS file - 10Where are images stored for an app? What is stored in the mipmap folder?images: drawable folder
stored in mipmap: launch icons - 11What is the use of a gradle file?tool that compiles source code and gives the apk file
shows what are the dependencies we want to use.
11.
Información
- Descripción
- Fichas sobre DSG, creado por Ash B el 09/04/2020.
- Creado por
- Ash B
- Visitas
- 0
- Valoración