{infiniteZest}
// Articles. Tutorials. Utilities.
Home  |   Search  |   Login  
Categories Skip Navigation Links
New / All
AJAX
Apple
ASP.NET
.NET
Git
Google / Android
Python / IronPython
Miscellaneous
SQL Server
Test: A few basic imports in an Android application program

4. Which of the following is the correct way in Android to get an integer state value (saved with key mDirection) from a Bundle object named icicle?



Results
Congratulations! Correct Answer.
You Answered: None. If you took the test, your answer will show up here.
Correct Answer: mDirection = icicle.getInteger("mDirection");
Explanation
Here icicle is an object of type Bundle. The method getInteger() can be used to get the integer from that Bundle. And finally, you need to pass the proper key.
Take the Test
Take the complete test on this topic. You will be able to review answers to questions and get a test score.

Take the Test


Question 4 of 5


Test is Based on this Article
A typical Android program includes a few imports from the Android SDK. This test has some questions on those basic imports.
icon-android-basic-imports.jpg
This article looks at a few basic imports that an Android program might use.

More Articles With Similar Tags
icon-android-debug-toolbar.jpg
This article gives some quick pointers on how to start debugging an Android application, along with where to put the breakpoints and how to change the emulator sizes from within Eclipse.
icon-android-safari-browser-user-agent-string.jpg
This article talks about the basics of the browser (including the user agent string) used in the Android platform.
This article talks about various aspects of creating an SQLite database. It also uses Android SQLite shell as an example.
This article explains how to get pretty / nice output from the SQLite command line shell program.
icon-android-emulator-hvga-p-lunar-lander.jpg
See the images of various skins and screens of Android emulator with games (Lunar Lander and Snake) in them. Also shows how to change the skins of Android emulator while debugging your program.
                                                                                                                                                                                                             
About  Contact  Privacy Policy  Site Map