A Windows Mobile GPS application sample-using fake GPS

Source: Internet
Author: User

Windows Mobile 6.0 emulator Before its launch, many device-related functions were available in Emulator Cannot be debugged and verified, such Phone , GPS And Bluetooth And so on. Windows Mobile 6.0 professional SDK Has added many highlights, including Fake GPS And Cellular emulator . Today, we will learn how to use Fake GPS And Windows Mobile 6.0 professional SDK Built-in GPS sample Code, In Windows Mobile 6.0 professional emulator On implementation GPS Receiving function.

1. Fake GPSInstallation and Setup

In "% Program Files % \ Windows Mobile 6 SDK \ tools \ GPS" Is called Fakegps. Cab File, this is Fakegps . Then Emulator Of Share folder Set to this directory, and then Emulator Open on "File into E" , Select "Storage card" , Click Fakegps. Cab File. After the installation is complete, open "Programs" And there is "Fake GPS" Click this item "Disable" Change "Enable" , Click "Done" . For example 1 As shown in the following figure: Fake GPS .

Figure 1:FakegpsSettings

2.Implemented with managed codeGPSReceiving

Open Windows Mobile 6 SDK refresh-Samples Directory, you can find that there are a lot of instance code. Where GPS The Code includes Native code And Maneged code . For details, see 2 As shown in:

 

Figure 2: GPS sample project description

In "% Program Files % \ Windows Mobile 6 SDK \ samples \ pocketpc \ CS \ GPS" And open the project "GPS. sln" . Select "Windows Mobile 6.0 professional emulator" For debugging. For example 3 As shown in:

Figure 3: select a simulator

ProgramRun the interface as shown in Figure4As shown in:

 

Figure 4: program running interface

3. GPSData Files

We can "My device \ Programs \ fakegps \ gpsfiles" Under, find ”Fakegpsdata.txt" And ”Dixies.txt" Files, the data recorded in these files is what we just GPS Receive the data displayed on the interface.

4. nginxProtocol

”Fakegpsdata.txt" And ”Dixies.txt" The data in is Nginx Protocol. I won't be so embarrassed here. Google Right.

 

Good luck!

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.