smart-location-lib icon indicating copy to clipboard operation
smart-location-lib copied to clipboard

Can i get location from network by this library ?!

Open mahmooddagga opened this issue 8 years ago • 8 comments

Can i get location from network by this library ?!

mahmooddagga avatar Jan 24 '17 10:01 mahmooddagga

@mrmans0n

mahmooddagga avatar Jan 24 '17 10:01 mahmooddagga

SmartLocation.with(context).location() .start(new OnLocationUpdatedListener() { ... });

this code work only if GPS is ON

mahmooddagga avatar Jan 24 '17 11:01 mahmooddagga

Any update on this? How would I get location from Wifi and network without turning on GPS?

Hemant0601 avatar Feb 16 '17 09:02 Hemant0601

Use it in a real decide not the emulator, and it works.

El jue., 16 feb. 2017 9:38, Hemant0601 [email protected] escribió:

Any update on this? How would I get location from Wifi and network without turning on GPS?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/mrmans0n/smart-location-lib/issues/188#issuecomment-280281215, or mute the thread https://github.com/notifications/unsubscribe-auth/AAgnI_hxmVFXKQ4o8MavfwvbMuQANIYoks5rdBj0gaJpZM4LsHLC .

mrmans0n avatar Feb 16 '17 09:02 mrmans0n

Device

El jue., 16 feb. 2017 9:40, Nacho López [email protected] escribió:

Use it in a real decide not the emulator, and it works.

El jue., 16 feb. 2017 9:38, Hemant0601 [email protected] escribió:

Any update on this? How would I get location from Wifi and network without turning on GPS?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/mrmans0n/smart-location-lib/issues/188#issuecomment-280281215, or mute the thread https://github.com/notifications/unsubscribe-auth/AAgnI_hxmVFXKQ4o8MavfwvbMuQANIYoks5rdBj0gaJpZM4LsHLC .

mrmans0n avatar Feb 16 '17 09:02 mrmans0n

@mrmans0n hi! I'm trying to get location via wifi in a real device but I can't... Is there any special code that I have to put?

Now I have this:

SmartLocation smartLocation = new SmartLocation.Builder(this).logging(true).build();
smartLocation.location(new LocationGooglePlayServicesWithFallbackProvider(mContext))
                .start(this);
@Override
    public void onLocationUpdated(Location location) {
        LatLng latLng = new LatLng(location.getLatitude(), location.getLongitude());
        // some more code...
    }

Can you help me please?? Thanks!!

enzonotario avatar Mar 28 '17 13:03 enzonotario

@mrmans0n Same problem, when GPS and network is ON it's all ok. Location updates. true is available network true is available GPS But when I off GPS than false is available network false is available GPS

Ninise avatar Apr 03 '17 06:04 Ninise

I have noticed that isNetworkAvailable is always false.

MaxToyberman avatar Jul 19 '17 17:07 MaxToyberman