Is it possible to get the current location of user without using gps
or internet
? I mean with the help of mobile network provider. Can anyone help me?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
Have you take a look Google Maps Geolocation Api? Google Map Geolocation
This is simple RestApi, you just need POST a request, the the service will return a location with accuracy in meters
Best regard
It appears that it is possible to track a smart phone without using GPS.
FWIW.
Sources:
Primary: "PinMe: Tracking a Smartphone User around the World"
Secondary: "How to Track a Cellphone Without GPS—or Consent"
I have not yet found a link to the team's final code. When I do I will post, if another has not done so.
Be seeing you.
By getting the
getLastKnownLocation
you do not actually initiate a fix yourself.Be aware that this could start the provider, but if the user has ever gotten a location before, I don't think it will. The docs aren't really too clear on this.
According to the docs getLastKnownLocation:
Here is a quick snippet:
You also have to add new permission to
AndroidManifest.xml
Here possible to get the User current location Without the use of GPS and Network Provider.
1 .
Convert cellLocation to real location (Latitude and Longitude), using "http://www.google.com/glm/mmap"
2.Click Here For Your Reference
What you are looking to do is get the position using the
LocationManager.NETWORK_PROVIDER
instead ofLocationManager.GPS_PROVIDER
. TheNETWORK_PROVIDER
will resolve on the GSM or wifi, which ever available. Obviously with wifi off, GSM will be used. Keep in mind that using the cell network is accurate to basically 500m.http://developer.android.com/guide/topics/location/obtaining-user-location.html has some really great information and sample code.
After you get done with most of the code in
OnCreate()
, add this:You could also have your activity implement the
LocationListener
class and thus implementonLocationChanged()
in your activity.