Skip to content Skip to sidebar Skip to footer

Locationmanager Exception

I'm trying to make LocationManager work and get weird security exception. When I run code: this.lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE); this.lm.setTestPro

Solution 1:

<uses-permission .../> goes outside the <application .../> tag.

See Structure of the Manifest File.

Solution 2:

On your device, go to Settings -> Applications -> Development and make sure that "Allow Mock Location" is checked.

Post a Comment for "Locationmanager Exception"