Exam 17: Android Development: Extending Views, Fragments, and Google Maps Permissions

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

We have started a speech recognition activity, and the user just said a word. Assuming that the request and result codes are correct, write one statement to retrieve the array of scores for the possible matches for what the user said. protected void onActivityResult( int requestCode, int resultCode, Intent data ) { // Your code goes here

(Essay)
4.9/5
(34)

The ____________ class encapsulates a seek bar or a slider.

(Short Answer)
4.9/5
(35)

We edit the ____________ in order to include Google Play services in the compilation process.

(Short Answer)
4.8/5
(33)

Inside an activity, when this activity goes in the background, we want to output HI to Logcat using the tag MA. Write the code for it.

(Essay)
4.9/5
(38)

Inside the XML snippet, below activity_main.xml, add two lines of XML so that the dimensions (width and height) of the TextView are just enough to hold the text inside the TextView. < TextView />

(Essay)
4.8/5
(33)

We use the ____________ method of the FragmentManager class to retrieve a fragment based on its id.

(Short Answer)
4.7/5
(32)

We have an ImageView reference named iv and a Bitmap reference named bitmap. Write one statement that places bitmap inside iv.

(Short Answer)
4.8/5
(45)

Inside colors.xml, write the code to define a color named myColor that is blue.

(Short Answer)
4.8/5
(35)

Inside activity_main.xml, write one line of code to specify the background color of the following TextView: its red component should be 0, its green component should be 255, and its blue component should be 10. < TextView < !--your code goes here -->

(Short Answer)
4.8/5
(36)

Inside activity_main.xml, write one line of code to specify the background color of the following TextView using a color resource named darkBlue defined in colors.xml: < TextView < !--your code goes here -->

(Short Answer)
4.8/5
(33)

We use the ____________ method of the Fragment class to retrieve its View.

(Short Answer)
4.8/5
(33)

If we want to receive location updates at regular intervals, we need to implement the ____________ interface.

(Short Answer)
4.9/5
(39)

When we want to extend the View class and draw in that custom View, we place our code in the ____________ method.

(Short Answer)
4.8/5
(32)

You are building the GridLayout grid programmatically. You have already created a TextView named tv; add it to the GridLayout grid, specifying a width of 200 and a height of 100.

(Short Answer)
5.0/5
(31)

The following code defines a transition between two activities. Add the code so that it lasts 5 seconds. < ?xml version="1.0" encoding="utf-8"?> < set xmlns:android="http://schemas.android.com/apk/res/android"> < translate android:fromYDelta="-100%" android:toYDelta="0" < !--Your code goes here --> < /set>

(Short Answer)
4.8/5
(45)

Write a code that creates a TextView within the current context. // Your code goes here

(Short Answer)
4.8/5
(34)

Inside activity_main.xml, we define a Button element; when the user clicks on the button, we want the method go (from the MainActivity class, whose content view is defined in activity_main.xml) to execute. Write the code for it. < Button < !--your code goes here -->

(Short Answer)
4.9/5
(38)

If the app writes to external storage, we need to add the ____________ permission (that is, the value of the uses-permission attribute) to the AndroidManifest.xml file.

(Short Answer)
4.8/5
(39)

LayoutParams is an inner class of GridLayout. Declare an object reference of type LayoutParams (the inner class of GridLayout).

(Short Answer)
4.8/5
(41)

Inside the XML snippet, below activity_main.xml, add a line of XML so that the text displayed in the text field will be the value of the string book (assume that the string book is defined in strings.xml). < TextView android:layout_width="fill_parent" android:layout_height="wrap_content" />

(Short Answer)
4.7/5
(39)
Showing 41 - 60 of 127
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)