O GoConqr está de visual novo! Conte para nós o que você achou.

Flashcards

Activities

Alex Neves Computer Science Bachelors Degree Inglês 5,0Avaliação média 5,0 de 5 (1 avaliação) 18 flashcards

Flashcards do conjunto (18)

  1. 1What is an Activity?An android component which represents the UI. The UI is defined in a view.xml
  2. 2How do Activities relate to android applications?An android application consists of a stack of activities
  3. 3What is a View?A UI element
  4. 4Name the 3 types of ViewsDisplay View, Interactive View and View Group
  5. 5What is the name given to a View which can be interacted with?Widget
  6. 6What is a View Group?A View which contains a collection of child views
  7. 7Name 3 types of View layoutsLinear, Scroll and Relative
  8. 8State the 6 states of the Activity LifecycleCreated, Started, Resumed, Paused, Stopped and Destroyed
  9. 9What type of object is used to persist / restore activity state?Bundles
  10. 10What is a Bundle?A collection of key-value pairs
  11. 11Under what circumstances are onSaveInstance / onRestoreInstance State called?If the activity is destroyed by the Android OS
  12. 12Give 2 examples of when restoration of state may occurWhen the OS is low on resources and destroys the stopped activity and if the screen orientation changes
  13. 13How are Activities started?Using Intents
  14. 14What is an Intent?An object used to start other activities
  15. 15Give an example of a Uri-based Intentnew Intent(ACTION_DIAL, new Uri("tel:07123456");
  16. 16Give an example of an Intent targeting a particular activitynew Intent(context, OtherActivity.class);
  17. 17How can we request a result from an activity?Using startActivityForResult()
  18. 18How does the onActivityResult() method identify which activity the result came from?By checking the provided ID against the ID supplied when calling startActivityForResult()

Informações

Descrição
Bachelors Degree Computer Science (Mobile Device Programming) FlashCards sobre Activities, criado por Alex Neves em 05-01-2016.
Criado por
Alex Neves
Visualizações
38
Tags
mdp
Avaliação
Avaliação média 5,0 de 5 (1 avaliação)

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?