Implementation of Android GPS positioning (1) continued

Source: Internet
Author: User

Why is this essay continued, not (2), mainly because the positioning information is displayed on the map in (2, and this articleArticleIn the previous article, I wrote about how to implement GPS positioning, but did not write about how to test positioning. Therefore, I would like to add a supplement here. For those who implement the GPS function but cannot test positioning on the simulator, provide some help:

To implement the test, I am using the CMD command line. Here I will perform the test. Of course there are other methods. If there are good ones, I can add them as a supplement.

First, open the command line tool.

Connect to the simulator, and use Telnet to connect.CodeAs follows:

Telnet localhost 5554 (this 5554 is input based on the simulator you started, or it may be other.

Simulator

Command line interface

Enter the GEO fix longitude and press Enter.

The simulator displays the following:

Sometimes you are prompted to enter help when entering the GEO fix command in the command line. You can enter help and then enter this command. Sometimes you need to enter help multiple times. The specific reason is unknown!

If you want to know more, let me know.

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.