Simulating GPS, making phone calls, and sending text messages in the android simulator ......

Source: Internet
Author: User

First, open the simulator.

Then, connect to the simulator

C: \ Users \ billgates> Telnet localhost 5554

Android Console: Type 'help' for a list of commands
OK

5554 indicates the port of the simulator on the local machine. You can use ADB devices to view the Port:

C: \ Users \ billgates> ADB Devices


List of devices attached
Emulator-5554 Device

Connect to the simulator and enter the HELP command to view help. Enter the command and press enter to view the command format.

GEO is GPS, SMS is a text message, GSM is a call, etc.

1. Use GEO commands to simulate GPS signal sending:

GEO fix Longitude Latitude

That is, it is equivalent to moving the mobile phone to the specified longitude and latitude.

You can also use geo NMEA to simulate NMEA content Sending.

2. Use SMS commands to send text messages

SMS send 10086 haha

Simulate a text message with the content "Haha" sent to your simulator by 10086

3. Call the GSM command

GSM invocation 10086

Call your simulator in simulation 10086

4. Simulate phone disconnection

gsm cancel 10086

Simulate 10086 of incoming calls

......................................................

Simulator conversion horizontal screen Ctrl + F11

2010-10-16

Well, I have to say that this is all done in cmd. In fact, it can be visualized in the ddms environment of Eclipse. After the installation environment is configured, a small green robot will appear in the upper-right corner of eclipse and be connected to "ddms". Click it to enter the ddms view, which corresponds to the simulator, therefore, you must start the simulator to see the content. You can also enter through window-open perspective-ddms, where you can perform any operations on the simulator, Drag and Drop files, simulate phone calls, and so on.

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.