I've just tried my first WP7 application on a real device. My problem is that I use geolocation for one of the features, but I always get location unknown.
I don't know if there's any way to grant location permissions to my app or if I am missing something.
In the phone settings the location services are enabled, and maps app is working without any problem in finding my actual position.
I've checked the GeoCoordinateWatcher.Permisson property and its value is "Granted".
I already have this line <Capability Name="ID_CAP_LOCATION"/>
in WMAppManifest.xml.
Any ideas to solve it?
[EDIT]
Here's my code. I've added the start line after you told me to do so, but I'm still having te problem.
string location = "41,0";
GeoCoordinateWatcher watcher = new GeoCoordinateWatcher();
watcher.Start();
var myPosition = watcher.Position;
if (!myPosition.Location.IsUnknown) {
location = myPosition.Location.Latitude + "," + myPosition.Location.Longitude;
}