Let's learn how to use the simulator together.
The contents of this article are as follows:
- Comparison of simulator and true machine
- Create an android emulator (emulator)
- Running the Android simulator
- Set the Simplified Chinese language Interface
- Analog phone call and send SMS function
- Source code: No code in this lecture
1. Comparison of simulator and real machine
Features that are not available in the Android emulator:
- Calls are not supported and actual calls are received, but can be simulated via the console through a phone call (inbound and outbound)
- USB Connection not supported
- Camera/video Capture not supported
- Audio input (capture) is not supported, but output is supported (replay)
- Extended Headphones not supported
- Unable to determine connection status
- Unable to determine battery level and AC charge status
- Unable to determine insert/eject of SD card
- 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.