Workshop
Quiz
-
Which features are available in the DDMS perspective?
- Taking screenshots of emulator and handset screens
- Browsing the file system of the emulator or handset
- Monitoring thread and heap information on the Android system
- Stopping processes
- Simulating incoming phone calls and SMS messages to emulators
- All of the above
-
True or False: You must use the Android emulator for debugging.
-
Which target platforms can Android applications be written for?
-
True or False: The Android emulator is a generic device that supports only one screen configuration.
Answers
- F. All of the above. The DDMS perspective can be used to monitor, browse, and interact with emulators and handsets in a variety of ways.
- False. The Android emulator is useful for debugging, but you can also connect the debugger to an actual device and debug directly.
- There are a number of target platforms available and more are added with each new SDK release. Some important platform targets include Android 1.1, Android 1.5, Android 1.6, Android 2.0., Android 2.0.1, and Android 2.1. Targets higher than Android 1.1 can include the Google APIs, if desired. These targets map to the AVD profiles you must create in order to use the Android emulator.
- False. The Android emulator is a generic device, but it can support several different skins. For a complete list of skins supported, see the Android SDK and AVD Manager in Eclipse.
Exercises
-
Launch the Android emulator and browse the settings available. Change the language settings. Uninstall an application.
-
Launch the Android emulator and customize your home screen. Change the wallpaper. Install an AppWidget. Get familiar with how the emulator tries to mimic a real handset. Note the limitations, such as how the dialer works.
-
Try launching the Hierarchy Viewer tool with the Droid1 project you created in Hour 1. Note how you can drill down to see the TextView_controls you created.