LocationManager "gps" provider exception unknown

This is related to my own question: LocationManager exception

Now that I do not have permission, one line of code gives me an exception:

Caused by: java.lang.IllegalArgumentException: Provider "gps" unknown at android.os.Parcel.readException(Parcel.java:1251) at android.os.Parcel.readException(Parcel.java:1235) at android.location.ILocationManager$Stub$Proxy.setTestProviderEnabled(ILocationManager.java:942) 

EDIT: From what I read, I need to use Eclipse or DDMS. But I'm using IntelliJ. How can I make fun of places using my setup?

0
source share
1 answer

It seems that setTestProviderStatus is deprecated. Google search and search did not help. Some information from the book made me realize that those who are out of date. Instead, you need to use DDMS controls when using an emulator or device. So, I tried to go this route and it seems to work.

0
source

All Articles