It's time for another July TechNet Guru winner!
Congratulations to Isenthil, our Windows Phone Development Guru winner for July! See the TechNet Guru Contributions for July 2013.
This is Isenthil's second Guru gold medal!
About Isenthil: Software Engineer, .NET Geek, and Windows Phone Fanboy
Here is the gold-medal-winning article:
Location API in Windows Phone 8
Now let's look at all the winning articles:
Congratulations to Senthil for taking Gold, and to Ken and Lohith for Silver and Bronze. Some great subjects covered in July. Let's hope August is even better!
And here's an excerpt from the article:
The Location capabilities has to be set in the app manifest file for the app to work fine when using the location APIs.
If the Location capabilities are not set in manifest file, the following is the behaviour.
1. If the App is targeted at Windows Phone 7.1, then a status error will be received when trying to start the GeoCoordinate Watcher.
2. If the App is targeted at Windows Phone 8, then the app will throw UnauthorizedAccessException.
Setting the location capabilities is pretty easy, you will need to include the ID_CAP_LOCATION in the Capabilities section of your WMAppManifest.xml . Note that you should also be setting the ID_CAP_NETWORKING.
/>< Capability Name="ID_CAP_NETWORKING"/>
If you are using Microsoft Visual Studio 2012, you can add the capabilities with the GUI editor as shown in the below screenshot.
Read the rest here:
Thanks to Isenthil for your great contribution to the TechNet Guru contest! You can read about all the July winners here: TechNet Guru Awards - July 2013
Also, for the August Guru competition, see TechNet Guru Contributions - August 2013.
Are you a Wiki Ninja? http://technet.com/wiki
- User Ed