The use of the Android simulator is described in detail _android

Source: Internet
Author: User

Let's learn how to use the simulator together.

The contents of this article are as follows:

    1. Comparison of simulator and true machine
    2. Create an android emulator (emulator)
    3. Running the Android simulator
    4. Set the Simplified Chinese language Interface
    5. Analog phone call and send SMS function
    6. Source code: No code in this lecture

1. Comparison of simulator and real machine

Features that are not available in the Android emulator:

    1. Calls are not supported and actual calls are received, but can be simulated via the console through a phone call (inbound and outbound)
    2. USB Connection not supported
    3. Camera/video Capture not supported
    4. Audio input (capture) is not supported, but output is supported (replay)
    5. Extended Headphones not supported
    6. Unable to determine connection status
    7. Unable to determine battery level and AC charge status
    8. Unable to determine insert/eject of SD card
    9. Bluetooth is not supported.

The unique features of the simulator:

API demo, this API demo is mainly the UI part, a variety of simple control techniques can be found in the inside,
Dev Tools, where dev tools can get some of the information needed for debug.

2. Create the SDK setup.exe files in the emulator running SDK directory, click on the left Virtual Devices tab, click New ...

Fill in the New pop-up window:

NAME:2.2_HVGA (give the virtual machine a name)
target:2.2 Select version
SD CARD:128MB Storage card memory how many megabytes
Skin: Simulator appearance and screen size
Hardware: Supported hardware devices

3. Run the Android simulator

command line to run the Android emulator EMULATOR.EXE–AVD 2.2_432

Where –AVD means Android virtual driver.

2.2_432 is the name of the simulator, 2.2 is the version number, 432 is the device resolution

The Android simulator starts very slowly and takes about 2-3 minutes, so don't worry about the problem when you wait. The following is the start of a successful screen. Note that the use of the simulator is different, the screen style will also be different.

4. Set the simplified Chinese interface for the simulator

Home-> setting-> Language & keyboard->select Language

After the success of the Setup interface is as follows:

5. Analog mobile phone call and send SMS function

Calling and texting require at least 2 simulators.

Notice that the number "5554,5556,5558" on the emulator header is the phone number of the simulator.

You can see the third video: Use the Android simulator to make a phone call and send and receive text messages.

The above is a data collation of the Android simulator, hoping to help students develop Android apps.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.