Monday 30 November 2009

101 Windows Mobile and Compact Framework Resources - Part 10

Next up is José Gallardo Salazar's Blog.
http://www.mobilepractices.com/
Particular highlights are :-
http://www.mobilepractices.com/2007/10/detecting-what-net-cf-version-is.html
http://www.mobilepractices.com/2008/10/setupdll-sample-and-walkthrough-terms.html
http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html

101 Windows Mobile and Compact Framework Resources - Part 9

Next up is Chris Craft's Blog.
http://www.cjcraft.com/blog/
Particular highlights are :-
30 Days of .NET (Windows Mobile Applications) - http://www.cjcraft.com/blog/default,month,2008-06.aspx

101 Windows Mobile and Compact Framework Resources - Part 8

Next up is a set of articles available from the OpenNETCF.
http://community.opennetcf.com/articles/

101 Windows Mobile and Compact Framework Resources - Part 7

Next up is Christian Helle's Blog.
http://christian-helle.blogspot.com/
Particular highlights are :-
http://christian-helle.blogspot.com/2007/06/accessing-windows-mobile-60-sound-apis.html
http://christian-helle.blogspot.com/search/label/ListView

101 Windows Mobile and Compact Framework Resources - Part 6

Next up is the OpenNETCF Smart Device Framework (SDF). This is a library which provides an extension to the .NET Compact Framework. It has proved to be invaluable in a number of projects I have worked on.
http://www.opennetcf.com/Products/SmartDeviceFramework/tabid/65/Default.aspx

Sunday 29 November 2009

101 Windows Mobile and Compact Framework Resources - Part 5

Next up is the Windows Mobile Managed Gestures Sample. With the introduction of Windows Mobile 6.5 saw the Gestures API and Physics Engine. Alex Yakhnin and Ron Buckton presented two WebCasts demonstrating the Gestures API and Physics Engine and provided a code sample and sample library.
http://code.msdn.microsoft.com/gestureswm

101 Windows Mobile and Compact Framework Resources - Part 4

Next up is a thread from one of the Smart Device Development forums. This thread lists a number of different options for making your Windows Mobile Application User Interface look attractive.
http://social.msdn.microsoft.com/Forums/en/vssmartdevicesvbcs/thread/5d1343ea-8820-4bdd-993c-e6bf17c2e760

101 Windows Mobile and Compact Framework Resources - Part 3

Next up is the "How Do I?" Videos for Devices. This is an excellent resource which provides over 100 screencasts which demonstrate a variety of subjects, such as the State and Notification Broker, User Interface Programming, Security and Deployment, etc. Along with the screencasts are code samples in both C# and VB.NET.
http://msdn.microsoft.com/en-us/netframework/bb495180.aspx

101 Windows Mobile and Compact Framework Resources - Part 2

Next up is the MSDN Smart Device Development Forums. These forums cover a number of areas of Smart Device Development such as the Compact Framework and Windows Mobile Development. I have found them to be an excellent resource to ask questions and also as a learning tool by knowing what issues others face.
http://social.msdn.microsoft.com/Forums/en-US/category/smartdevicedevelopment

101 Windows Mobile and Compact Framework Resources - Part 1

Over the next few weeks I will be sharing with you a collection of links to various resources I have collected over the years. These resources are directly related to Windows Mobile and the Compact Framework. This is by no means the full extent of resources available, and more may be added as time goes on.

First up is the MSDN Online Documentation. I find this to be very useful in determining a number of things, such as usage examples as well as which versions of the Framework support which features. Searching online using your favourite online search engine normally displays results directly from the MSDN Documentation, also using this technique can also highlight any other uses of that type that may be useful.
http://msdn.microsoft.com/en-us/library/default.aspx

Thursday 12 November 2009

Bing Maps and Windows Mobile Part 5

A question was recently asked on the Smart Device MSDN forums here. This regarded getting an address from latitude and longitude co-ordinates.

In an attempt to answer the question I had a quick look at the Bing Maps Web Service and found that ReverseGeocode method was available and posted a link to the relevant MSDN documentation here.

As I had already blogged about Bing Maps and Windows Mobile, I thought I would check what the method returned.

I used the Geocode method to return the Latitude and Longitude from my home address and then feed these two values back into the ReverseGeocode method and was returned an address string, although the house number was 15 numbers out.

The method I used is below, please note that the LatitudeSpecified and LongitudeSpecified had to set to ensure that a valid response was receieved.

private string ReverseGeocodeCoordinates(double latitude, double longitude)
{
ReverseGeocodeRequest reverseGeocodeRequest = new ReverseGeocodeRequest();
reverseGeocodeRequest.Credentials = new WindowsMobileBingMapsTester.net.virtualearth.dev.staging.Credentials();
reverseGeocodeRequest.Credentials.Token = GetClientToken();

reverseGeocodeRequest.Location = new WindowsMobileBingMapsTester.net.virtualearth.dev.staging.Location();
reverseGeocodeRequest.Location.Latitude = latitude;
reverseGeocodeRequest.Location.LatitudeSpecified = true;
reverseGeocodeRequest.Location.Longitude = longitude;
reverseGeocodeRequest.Location.LongitudeSpecified = true;

// Make the geocode request
GeocodeService geocodeService = new GeocodeService();
GeocodeResponse geocodeResponse = geocodeService.ReverseGeocode(reverseGeocodeRequest);

if (geocodeResponse.Results.Length > 0)
if (geocodeResponse.Results[0].Locations.Length > 0)
return geocodeResponse.Results[0].DisplayName;

return null;
}

Usage :-

string currentAddress = ReverseGeocodeCoordinates(47.608, -122.337);

Hopefully this will help those looking to determine an address from a set of co-ordinates.