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
-
Open Eclipse
-
Click Window on the menu bar and select AVD Manager to open the Android Virtual Device manager dialog box.
-
Click the New button to open the Create new Android Virtual Device (AVD) dialog box
-
To name your Android emulator, type IceCream in the Name text box.
-
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.
-
Click the Create AVD button. The Android Virtual Device Manager dialog box lists the AVD Name (IceCream) for the Android 4.0 target device.
-
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.
-
To close Eclipse – Click File on the menu bar and then click Exit.
Share with your friends: |