Giter VIP home page Giter VIP logo

Comments (4)

mrmans0n avatar mrmans0n commented on July 17, 2024

The problem with Genymotion is that it does not have Google Play Services bundled into their system images, as Google told them not to bundle it.

The library uses the "old-way" with LocationManager too in case the Play Services aren't available, and tries to request either network or gps (depending on the updatestrategy selected) locations.

It should work because of that, but I don't recall testing this in a Genymotion VM.

I will try it as soon as I can and try to reproduce this issue.

from smart-location-lib.

radimvaculik avatar radimvaculik commented on July 17, 2024

I "hack" Genymotion (http://forum.xda-developers.com/showthread.php?t=2528952) and install Google Play Service into it :) I will appreciate, if you look at that. Thanks.

from smart-location-lib.

PoCk3T avatar PoCk3T commented on July 17, 2024

Hello guys,

First of all, congrats for the greab lib, it's so easy to implement and working like a charm on my real devices.

For Genymotion, that's another story though... I have read all the thread here but still get no location in GenyMotion, even with Geny GPS enabled + Location ON in Android settings.

Here is how I start SmartLocation from my MainActivity :

SmartLocation.with(this).location()
.provider(new LocationGooglePlayServicesWithFallbackProvider(this))
.start(new OnLocationUpdatedListener() { .... });

But still, in one fragment of this activity, SmartLocation.with(context).location().getLastLocation() would stay NULL :(

Any idea ? :)
Lucas

from smart-location-lib.

ariefbayu avatar ariefbayu commented on July 17, 2024

Hi all,

I created gist that work well on genymotion and other non google play service devices:

https://gist.github.com/ariefbayu/12c8bef435dd5b14e94c

The trick is in this:

.config(LocationParams.NAVIGATION)
.provider(new LocationGooglePlayServicesWithFallbackProvider(getApplicationContext()))

from smart-location-lib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.