Question

I have been trying to get the following code to work for the last 4 hours.

public void clearLocation() { 
    LocationManager locMan =
            (LocationManager)getSystemService(Context.LOCATION_SERVICE); 
    locMan.clearTestProviderLocation("gps"); 

My problem is that it will only work with Android 1.5. On 1.6 and newer it just crashes when it reaches the second statement.

I've been looking through various code snippets and tutorials, but haven't been able to find anything about this.

Regards, Adam.

Was it helpful?

Solution

Well... found out that you can't change anything about the location provider "gps" in 1.6+

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top