📄 codeproject gps tracking with windows mobile 5_0+_ free source code and programming help.htm
字号:
<div class="MI" id="Section77"><a href="/KB/net-languages/">Other .NET Languages</a></div><div class="MI" id="Section21"><a href="/KB/XML/">XML</a></div></div><div class="MenuChapter"><a href="/script/Content/Chapter.aspx?chapterId=6" onclick="return ToggleMenu('Chapter6');">General Programming</a></div><div class="MenuSectionBlock" id="Chapter6" style="display:none;"><div class="MI" id="Section57"><a href="/KB/recipes/">Algorithms & Recipes</a></div><div class="MI" id="Section64"><a href="/KB/bugs/">Bugs & Workarounds</a></div><div class="MI" id="Section79"><a href="/KB/collections/">Collections</a></div><div class="MI" id="Section56"><a href="/KB/security/">Cryptography & Security</a></div><div class="MI" id="Section50"><a href="/KB/datetime/">Date and Time</a></div><div class="MI" id="Section52"><a href="/KB/DLL/">DLLs & Assemblies</a></div><div class="MI" id="Section80"><a href="/KB/exception/">Exception Handling</a></div><div class="MI" id="Section81"><a href="/KB/locale/">Localisation</a></div><div class="MI" id="Section53"><a href="/KB/macros/">Macros and Add-ins</a></div><div class="MI" id="Section54"><a href="/KB/tips/">Programming Tips</a></div><div class="MI" id="Section55"><a href="/KB/string/">String handling</a></div><div class="MI" id="Section58"><a href="/KB/threads/">Threads, Processes & IPC</a></div><div class="MI" id="Section59"><a href="/KB/winhelp/">WinHelp / HTMLHelp</a></div></div><div class="MenuChapter"><a href="/script/Content/Chapter.aspx?chapterId=10" onclick="return ToggleMenu('Chapter10');">Graphics / Design</a></div><div class="MenuSectionBlock" id="Chapter10" style="display:none;"><div class="MI" id="Section40"><a href="/KB/expression/">Expression</a></div><div class="MI" id="Section114"><a href="/KB/usability/">Usability</a></div></div><div class="MenuChapter"><a href="/script/Content/Chapter.aspx?chapterId=11" onclick="return ToggleMenu('Chapter11');">Development Lifecycle</a></div><div class="MenuSectionBlock" id="Chapter11" style="display:none;"><div class="MI" id="Section51"><a href="/KB/debug/">Debug Tips</a></div><div class="MI" id="Section39"><a href="/KB/architecture/">Design and Architecture</a></div><div class="MI" id="Section112"><a href="/KB/install/">Installation</a></div><div class="MI" id="Section41"><a href="/KB/work/">Work Issues</a></div></div><div class="MenuChapter"><a href="/script/Content/Chapter.aspx?chapterId=7" onclick="return ToggleMenu('Chapter7');">General Reading</a></div><div class="MenuSectionBlock" id="Chapter7" style="display:none;"><div class="MI" id="Section60"><a href="/KB/books/">Book Chapters</a></div><div class="MI" id="Section61"><a href="/KB/book-reviews/">Book Reviews</a></div><div class="MI" id="Section109"><a href="/KB/hardware-review/">Hardware Reviews</a></div><div class="MI" id="Section63"><a href="/KB/interviews/">Interviews</a></div><div class="MI" id="Section65"><a href="/KB/showcase/">Product Showcase</a></div><div class="MI" id="Section62"><a href="/KB/scrapbook/">Scrapbook</a></div></div></div><br /><div class="MenuCat">Feature Zones</div><div class="MenuChapter"><a href="/kb/showcase/">Product Showcase</a></div><div class="MenuChapter"><a href="/Zones/Install">Install</a></div><br />
<script language="javascript">document.write("<a href=\"http://www.codeproject.com/Redir.aspx?adid=5047&way=ban\" target=\"_blank\" rel=\"nofollow\"><img src=\"http://www.codeproject.com/script/Ann/ServeImg.aspx?File=%2fscript%2fadmentor%2fimages%2fWholeTomato_ChangeSigExt_160x600_Original_newfont.gif&C=False&id=5047\" alt=\"The intellisense upgrade for Visual Studio .NET - make your IDE as smart as you.\" border=\"0\" width=\"160\" height=\"600\"></a>");</script>
<img src="/script/Common/Images/t.gif" height="1" alt="" width="160" />
</td>
<td class="ArticlePane" valign="top">
<table class="SearchHeaderBar" cellspacing="0" width="100%">
<tr>
<td valign="middle" align="right" style="white-space:nowrap;width:60%">
<form method="get" action="/info/search.aspx" name="Search" style="margin:0;">
<b>Search </b>
<input class="SmallText" name="artkw" style="width:200;" />
<select class="SmallText" style="font-weight:bold;" name="sbo">
<option value="kw">Articles</option>
<!--<option value="au">Authors</option>-->
<option value="fm">Messages</option>
</select>
<input type="submit" class="SmallText" style="font-weight:bold;" value=" Go! " />
</form>
</td>
<td class="TinyText" style="white-space:nowrap;">
<a href="/info/search.aspx">Advanced Search</a><br />
<a href="/script/Content/SiteMap.aspx">Sitemap</a>
| <a id="ctl00_SearchBarCtrl_AddToIESearchLnk" title="Add The Code Project to your IE search Providers" onclick="window.external.AddSearchProvider('http://www.codeproject.com/info/OpenSearch.xml');return false;" href="/">Add to IE Search</a>
</td>
</tr>
</table>
<span id="ctl00_ResultMessage"></span>
<div id="ctl00_ArtDiv">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td valign="top">
<table>
</table>
<table width="1" cellpadding="3" cellspacing="1" border="0">
<tr class="smalltext" valign="middle">
<td style="white-space:nowrap">
<img src="/script/Articles/Images/print.gif" width="16" height="16" style="border:0px;vertical-align:middle;" alt="print" />
<a id="ctl00_ArticleHeaderLinks_PrintLnk" href="/KB/mobile/FindMe.aspx?display=Print">Print</a>
</td>
<td style="white-space:nowrap">
<img src="/script/Articles/Images/broken.gif" width="16" height="16" style="border:0px;vertical-align:middle;"
alt="Broken Article?" />
<a id="ctl00_ArticleHeaderLinks_BrokenLnk" href="/script/Articles/Report.aspx?aid=20031">Broken Article?</a>
</td>
<td style="white-space:nowrap">
<img id="ctl00_ArticleHeaderLinks_ArticleBmk_BookmarkImg" src="/script/Bookmarks/Images/link.png" style="height:16px;width:16px;border-width:0px;border:0px;vertical-align:middle;" />
<a id="ctl00_ArticleHeaderLinks_ArticleBmk_BookmarkLnk" href="/script/Bookmarks/Add.aspx?&obid=20031&obtid=2">Add Bookmark</a>
<span id="ctl00_ArticleHeaderLinks_ArticleBmk_Message"></span>
</td>
<td style="white-space:nowrap">
<img src="/script/Content/Images/discuss.gif" width="15" height="16" style="border:0px;vertical-align:middle;" alt="Discuss" />
<a href="#_comments">Discuss</a>
</td>
<td style="white-space:nowrap">
<img src="/script/Content/Images/mail.gif" width="16" height="16" style="border:0px;vertical-align:middle;" alt="Recommend Article" />
<a id="ctl00_ArticleHeaderLinks_Recommend" href="/script/common/TellFriend.aspx?obtid=2&obid=20031">Send to a friend</a>
</td>
</tr>
</table>
</td>
<td align="right">
<table>
<tr>
<td style="white-space:nowrap" class="SmallText" align="right">
<span id="ctl00_ArticleRating_VoteLabel">8 votes for this Article.</span>
</td>
<td>
<table border="1" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="White" width="20px" height="5px"><img src="/script/Ratings/Images/red.gif" height="5" border="0" width="20" /></td>
<td bgcolor="White" width="20px" height="5px"><img src="/script/Ratings/Images/red.gif" height="5" border="0" width="20" /></td>
<td bgcolor="White" width="20px" height="5px"><img src="/script/Ratings/Images/red.gif" height="5" border="0" width="20" /></td>
<td bgcolor="White" width="20px" height="5px" nowrap="nowrap"><img src="/script/Ratings/Images/red.gif" height="5" border="0" width="13" /></td>
<td bgcolor="White" width="20px" height="5px"><img src="/script/Ratings/Images/white.gif" height="5" border="0" width="20" /></td>
</tr>
</table>
</td>
</tr>
<tr id="ctl00_ArticleRating_PopularityRow">
<td colspan="2" align="right" class="SmallText">
<a id="ctl00_ArticleRating_PopularityLnk" title="Calculated as rating x Log10(# votes)" href="/script/Articles/TopArticles.aspx?ta_so=1">Popularity: 3.29</a><span id="ctl00_ArticleRating_PopularityLbl"></span>
Rating: <b>3.64</b> out of 5
</td>
</tr>
</table>
</td>
</tr>
</table>
<div id="ctl00_UneditedRow" class="SmallText" style="margin:5;padding:5;border-bottom: dashed 1px #ff9900;border-top: dashed 1px #ff9900">
<b>Note:</b> This is an unedited contribution. If this article is inappropriate,
needs attention or copies someone else's work without reference then please
<a id="ctl00_ReportProblem" href="/script/Articles/Report.aspx?aid=20031">Report This Article</a>
</div>
<span id="intelliTXT">
<div id="contentdiv">
<!-- Main Page Contents Start -->
<!-- Article Starts -->
<ul class="download">
<li><a href="FindMe/FindMe-cab.zip">Download FindMe-cab.zip - 84.7 KB</a> </li>
<li><a href="FindMe/FindMe-src.zip">Download FindMe-src.zip - 115.5 KB</a> </li>
<li><a href="FindMe/RestoreGps.zip">Download RestoreGps.zip - 1.6 KB</a> </li>
</ul>
<img height="395" alt="Screenshot - Title.png" src="FindMe/Title.png" width="569" />
<h2>Introduction</h2>
<p>This program is a proof of concept for a larger system that I plan to build. Ultimately I would like to have a system that allows users to opt in and out of letting their positions be known. The location information would be acquired through an application running on a Windows Mobile 5.0 (or later) device. Such a system has commercial applications (knowing where a delivery or service person is located) and personal applications (ex: you are heading to a friends house and the friend would like to know how far away you are). In this prototype my goal was to touch on some of the foundational technologies for the system. </p>
<p>For this proof of concept I wanted to be able to acquire the GPS information from the GPS Intermediate Driver and wanted a way to have a phone send this information either by request of the phone's owner or one of the owner's contacts. Thus the fundamental technologies used here are </p>
<ul>
<li>GPS Intermediate Driver - gets GPS information in a way that won't interfere with other GPS applications </li>
<li>MessageInterceptor - waits for location request and starts the application when one is received </li>
</ul>
<p />
<h2>Required Tools</h2>
<p>To run this code you will need to have Visual Studio 2005 installed and both the Windows Mobile 5.0 SDK and the Windows Mobile 6 Professional SDK. The 5.0 SDK is needed because I've set this project to target 5.0 devices. The code used for accessing the GPS device is part of the 6.0 SDK (though it runs just fine on 5.0 devices). I've included the compiled assembly for the GPS wrapper with my project but not the source code. To see the source code for this wrapper you must have the Windows Mobile Professional 6.0 SDK. </p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -