Setting up the Android Emulator



Download 6.23 Kb.
Date30.06.2017
Size6.23 Kb.
#22217

The Android SDK includes a phone and tablet emulator that allows you to develop and test your Android applications. Android Virtual Device (AVD) – host many different shapes and sizes Android mobile devices to test your apps.

The Android SDK and AVD Manager within Eclipse provide multiple emulators to test drive your application without using a physical device.

To use the emulator, you first must create one or more AVD configurations. In each configuration, you specify an Android platform to run in the emulator and the set of hardware options and emulator and the set of hardware options and emulator skins you want to use. When you launch the emulator, you specify the AVD configuration that you want to load.

We will be using Android 4.0 Ice Cream Sandwich.



You must name the emulator that you set up to use to deploy your Android apps. By selecting an emulator, you choose the skin, or resolution, that the Android emulator displays.

TO SPECIFY THE ANDROID 4.0 EMULATOR

  1. Open Eclipse

  2. Click Window on the menu bar and select AVD Manager to open the Android Virtual Device manager dialog box.

  3. Click the New button to open the Create new Android Virtual Device (AVD) dialog box

  4. To name your Android emulator, type IceCream in the Name text box.

  5. To target your Android app to appear in the Android 4.0 version, select Android 4.0 – API Level 14 in the target list. You can select newer Android versions, but most devices are not using the newest platform.



  1. Click the Create AVD button. The Android Virtual Device Manager dialog box lists the AVD Name (IceCream) for the Android 4.0 target device.



  1. Click the IceCream emulator and then click the Start button. If a launch Options dialog box opens, click the launch button. It may take a moment.

  2. To close Eclipse – Click File on the menu bar and then click Exit.


Download 6.23 Kb.

Share with your friends:




The database is protected by copyright ©ininet.org 2024
send message

    Main page