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 ____________ method of the Canvas class to draw a string.
(Short Answer)
4.9/5
(33)
Assuming that we have two Location object references named a and b, write one statement that retrieves the distance between them.
(Short Answer)
4.8/5
(35)
The ____________ class enables us to define the style and color for drawing.
(Short Answer)
4.8/5
(41)
The ____________ class of the javax.crypto package provides implementations of various encryption and decryption algorithms.
(Short Answer)
4.9/5
(33)
db is a SQLiteDatabase reference; sql is a String representing a delete SQL statement. Write a statement to execute that SQL statement.
(Short Answer)
4.9/5
(33)
Inside a TableLayout, define a TableRow such that it is as big as necessary and has two elements: a Button and a TextView. The Button's text is GO, and the TextView's text is RESULT. The Button's id is go. The text inside the TextView element has 15 pixels of padding.
(Essay)
4.8/5
(25)
We want to make the app go from the current activity to a new activity of type MyActivity. The new screen comes with an animation defined in the file abc.xml located in the anim directory of the resources directory. Write the code for this.
(Essay)
4.9/5
(38)
The ____________ method of the View class triggers a call to onDraw and can be called from outside the main user interface thread.
(Short Answer)
5.0/5
(38)
The ____________ method of the current Activity class is automatically called when the user starts or resumes a different activity.
(Short Answer)
4.9/5
(43)
The MyHandler class extends the DefaultHandler class; myIs is an InputStream reference containing an XML document that we want to parse using MyHandler; sp is a SAXParser reference. Write the code to start the parsing using the following parse method of the SAXParser class:
void parse( InputStream is, DefaultHandler dh )
// myIs is an input stream that contains an XML document
// sp is a SAXParser reference
// Your code goes here
(Essay)
4.8/5
(30)
We have a file named abc.p n g in the drawable directory of the resources directory. Write the code to create a Bitmap reference using that file.
(Essay)
5.0/5
(31)
We want to retrieve the private key of a KeyPair named kp. Write the code for it.
(Short Answer)
4.8/5
(38)
Inside an Activity class, write a statement that creates and shows a Toast that lasts 3 seconds and says HI.
(Short Answer)
4.8/5
(42)
The ____________ class from the android.appwidget package describes the meta data in a widget provider, such as icon, minimum width and height, and update frequency.
(Short Answer)
4.9/5
(37)
Code a private class that implements the View.OnClickListener interface; override its only method so that it changes the text of the View parameter of that method to CHANGED (assume that View is a Button).
(Essay)
4.8/5
(40)
We want to add the following annotations to a map (we have a GoogleMap reference named map): a title (HELLO) and a snippet (NICE). The annotations should be located at latitude 39.5 and longitude −75.3.
// map is a GoogleMap
MarkerOptions options = new MarkerOptions( );
// Your code goes here
(Essay)
4.8/5
(43)
Inside activity_main.xml, we defined a Button element in such a way that when the user clicks on the button, the go method (from the MainActivity class, whose content view is defined in activity_main.xml) executes. When the user clicks on the button, we want to change the text of that button to CHANGED. Write the go method.
(Essay)
4.8/5
(39)
Inside MainActivity.java, write the code to retrieve and assign to an EditText object reference an EditText element defined in activity_main.xml and whose id is input.
(Short Answer)
4.8/5
(31)
Inside an activity element of the AndroidManifest.xml file, write the code so that this activity is supported only in horizontal orientation.
< activity
android:name = ".MainActivity"
< !-- Your code goes here -->
< /activity>
(Short Answer)
4.8/5
(27)
Showing 61 - 80 of 127
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)