Home > Articles > Programming > C/C++

  • Print
  • + Share This
This chapter is from the book

Workshop

Quiz

  1. Which features are available in the DDMS perspective?

    1. Taking screenshots of emulator and handset screens
    2. Browsing the file system of the emulator or handset
    3. Monitoring thread and heap information on the Android system
    4. Stopping processes
    5. Simulating incoming phone calls and SMS messages to emulators
    6. All of the above
  2. True or False: You must use the Android emulator for debugging.

  3. Which target platforms can Android applications be written for?

  4. True or False: The Android emulator is a generic device that supports only one screen configuration.

Answers

  1. 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.
  2. False. The Android emulator is useful for debugging, but you can also connect the debugger to an actual device and debug directly.
  3. 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.
  4. 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

  1. Launch the Android emulator and browse the settings available. Change the language settings. Uninstall an application.

  2. 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.

  3. 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.

  • + Share This
  • 🔖 Save To Your Account