Exam 17: Android Development: Extending Views, Fragments, and Google Maps Permissions
Exam 1: Basics of Android: Hello World23 Questions
Exam 2: Model View Controller, Gui Components, Events20 Questions
Exam 3: Coding the Gui Programmatically, Layout Managers20 Questions
Exam 4: Multiple Activities, Passing Data Between Activities, Transitions, Persistent Data22 Questions
Exam 5: Menus, Sqlite21 Questions
Exam 6: Managing the Device Orientation22 Questions
Exam 7: Touches and Swipes22 Questions
Exam 8: Graphics, Animations, Sounds and Gaming27 Questions
Exam 9: Fragments26 Questions
Exam 10: Using Libraries and Their Apis: Speech Recognition and Maps33 Questions
Exam 11: Using the Gps and Location Services21 Questions
Exam 12: Using an Existing App: Taking a Photo and Sending an Email28 Questions
Exam 13: Xml and Content Apps25 Questions
Exam 14: Making an Android Widget35 Questions
Exam 15: In App Advertising25 Questions
Exam 16: Security and Encryption23 Questions
Exam 17: Android Development: Extending Views, Fragments, and Google Maps Permissions127 Questions
Select questions type
We can use the ____________ subclass of the View class from the com.google.android.gms.ads package to display an ad banner.
(Short Answer)
4.8/5
(31)
We have a camera app activity, and the user just took a picture. Assuming that the request and result codes are correct, write the code to retrieve the Bitmap that stores the picture taken.
protected void onActivityResult( int requestCode,
int resultCode, Intent data ) {
super.onActivityResult( requestCode, resultCode, data );
// Your code goes here
(Essay)
4.8/5
(34)
Inside the AndroidManifest.xml file, add an activity element of the type MyActivity class and whose label is the value of the string my_app (specified in the strings.xml file).
< /activity>
< !-- Your code goes here -->
< /application>
(Short Answer)
4.8/5
(40)
The getAction method of the MotionEvent class returns an integer. We can compare that integer to the ____________ constant of the MotionEvent class if we want to test whether the user moved his or her finger on the screen.
(Short Answer)
4.9/5
(26)
Inside an Activity class, and assuming that a GridLayout named gl has been instantiated, write the code to create a Button and add it to gl, setting its width to the width of the screen and its height to 100.
(Essay)
4.8/5
(39)
Inside the XML snippet below activity_main.xml, add two lines of XML so that the width of the TextView is as big as the width of the TextView's parent, and the height of the TextView is just what is necessary to hold the TextView's contents.
< TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
(Essay)
4.9/5
(47)
Showing 121 - 127 of 127
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)