Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AndroidGPS list GPS Provider but use hardcoded "gps" #54

Closed
murlock opened this issue May 15, 2014 · 2 comments
Closed

AndroidGPS list GPS Provider but use hardcoded "gps" #54

murlock opened this issue May 15, 2014 · 2 comments

Comments

@murlock
Copy link

murlock commented May 15, 2014

List all Location Providers but only use gps:

        providers = self._location_manager.getProviders(False).toArray()
        for provider in providers:
            self._location_manager.requestLocationUpdates(
                "gps",
                1000, # minTime, in milliseconds
                1, # minDistance, in meters
                self._location_listener,

it should be

            self._location_manager.requestLocationUpdates(
                provider,
@trivedigaurav
Copy link
Member

@murlock I think you are right. You could go ahead and create a pull request for fixing plyer/platforms/android/gps.py. Thanks!

@murlock
Copy link
Author

murlock commented May 15, 2014

Ok, I'll do it

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants