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!