Version 1 of Windows Phone Cell Phone Tracker is complete!

Making progress. The windows phone cell phone tracker is now complete and is fully operational with the test website on websmithing. You can find the source code here on github:

https://github.com/nickfox/GpsTracker/tree/master/phoneClients/windowsPhone

The original java ME / j2me phone app has also been updated to work with the websmithing website and can be found in the same repo. Both of these clients will work with the original gps tracker software. The android application is nearly complete and should be posted in a few days.

8 thoughts on “Version 1 of Windows Phone Cell Phone Tracker is complete!

      1. Chuck Statkus

        I get the following errors:

        Severity Code Description Project File Line
        Error CS0234 The type or namespace name ‘Http’ does not exist in the namespace ‘System.Net’ (are you missing an assembly reference?) GPSTracker E:\GpsTracker-v4.0.3\GpsTracker\phoneClients\windowsPhone\GPSTracker\MainPage.xaml.cs 17

        Severity Code Description Project File Line
        Error CS0246 The type or namespace name ‘HttpContent’ could not be found (are you missing a using directive or an assembly reference?) GPSTracker E:\GpsTracker-v4.0.3\GpsTracker\phoneClients\windowsPhone\GPSTracker\MainPage.xaml.cs 78

        Severity Code Description Project File Line
        Error CS0246 The type or namespace name ‘FormUrlEncodedContent’ could not be found (are you missing a using directive or an assembly reference?) GPSTracker E:\GpsTracker-v4.0.3\GpsTracker\phoneClients\windowsPhone\GPSTracker\MainPage.xaml.cs 78

        Severity Code Description Project File Line
        Error CS0246 The type or namespace name ‘HttpClient’ could not be found (are you missing a using directive or an assembly reference?) GPSTracker E:\GpsTracker-v4.0.3\GpsTracker\phoneClients\windowsPhone\GPSTracker\MainPage.xaml.cs 95

        Severity Code Description Project File Line
        Error CS0246 The type or namespace name ‘HttpClient’ could not be found (are you missing a using directive or an assembly reference?) GPSTracker E:\GpsTracker-v4.0.3\GpsTracker\phoneClients\windowsPhone\GPSTracker\MainPage.xaml.cs 95

        Severity Code Description Project File Line
        Error CS0246 The type or namespace name ‘HttpResponseMessage’ could not be found (are you missing a using directive or an assembly reference?) GPSTracker E:\GpsTracker-v4.0.3\GpsTracker\phoneClients\windowsPhone\GPSTracker\MainPage.xaml.cs 96

        Reply
  1. Chuck Statkus

    I can get the data to my site at http://cellfinder.info/updatelocation.aspx
    I initially tried https://www.websmithing.com/gpstracker/updatelocation.php but never seen my info.
    In order to get it to work at my site, I had to make the following changes:
    From GetAsync to PostAsync at the Windows Phone and
    Request.QueryString to Request. in the UpdateLocation.aspx:.

    Also had to change (UpdateLocation):
    bool result4 = Decimal.TryParse(latitude, out directionDecimal);
    to:
    bool result4 = Decimal.TryParse(direction, out directionDecimal);

    My final problem is keeping the app running at the windows phone. Can the app be forced into the background and survive a power off, then on?

    Reply
    1. Nick Fox Post author

      Good question and also the reason why I have not put a lot of effort into the windows phone client. Background location will stop after 4 hours. As far as I’m concerned, it makes the app totally useless. Why microsoft chose 4 hours instead of something intelligent like 8 hours (the length of a workday) is beyond me. The android app that I wrote does run in the background indefinitely and does keep running during reboots but unfortunately, the windows phone version can’t. You can read about the limitation here:

      https://msdn.microsoft.com/library/windows/apps/jj681691(v=vs.105).aspx

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.