Hey guys,
I have a question, my app needs to get the user's location using the GPS sensor and then process it to do other stuff with it. I've mainly tried this on Android and it works perfectly, but I need to make sure this works on Windows Phone too but by the looks of it, the code I'm using doesn't even seem to try to look for the location even though I have location services on. I'm using the following code in order to get it:
public Location getLocation() {
Location loc = null;
try {
final LocationManager mylocLocationManager = LocationManager.getLocationManager();
loc = mylocLocationManager.getCurrentLocationSync(60000);
} catch (Exception ex) {
ex.printStackTrace();
}
return loc;
}
Can you please help me with this?
Thanks.