Exercises

4.1 Fill in the blanks in each of the following statements:

a) A layout fills the entire client area of the screen if the layout’s Width and Height properties (in the Layout Parameters section of the Properties window) are each set to ___________.

b) ___________ object stores key-value pairs.

c) ___________ (a static method of class Collections from package java.util) sorts the List in its first argument.

d) You use ___________ objects to configure and create AlertDialogs for displaying messages to the user.

e) Android uses a technique known as ___________ to communicate information between activities within one app or activities in separate apps.

f) A(n) ___________ is a GUI that shows a list of apps that can handle a specified Intent.

4.2 State whether each of the following is true or false. If false, explain why.

a) An Algorithm specifies an action to be performed and the data to be acted upon—Android uses Algorithms to launch the appropriate activities.

b) You implement interface View.OnClickListener of package android.view to specify the code that should execute when the user touches a Button.

c) The first argument passed to Intent’s constructor is the data to be operated on.

d) An explicit Intent allows the system to launch the most appropriate Activity based on the type of data.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset