Questions tagged [locationmanager]

The LocationManager class in Android provides access to the system location services. These services allow applications to obtain periodic updates of the device's geographical location, or to fire an application-specified Intent when the device enters the proximity of a given geographical location.

The LocationManager class in Android SDK provides access to the system location services. These services allow applications to obtain periodic updates of the device's geographical location, or to fire an application-specified Intent when the device enters the proximity of a given geographical location.

1056 questions
-3
votes
2 answers

Not getting the location

I am making a app in which i have to show a splash screen for 1/2 sec.While the splash is loading i have to get the user location.location accuracy is not concern.So for this i have written a code but always i get null from location. Code private…
Anuj Mody
  • 21
  • 1
  • 6
-4
votes
1 answer

If I do not define any time and distance in requestLocationUpdates(), what will happen?

If I cant pass minimum time and distance in this method, what will happen? When will this method be called? locationManager.requestLocationUpdates(provider,0, 0,locationListener);
sam_k
  • 5,983
  • 14
  • 76
  • 110
-4
votes
2 answers

how to find latitude and longitude every second without using GPS

i want to find latitude and longitude of user current position and insert in db every second. and drawer a path according to all latitude and longitude of user move on location without using GPS
-5
votes
1 answer

Why the location Manager is nil in the viewDidLoad and didUpdateLocations func isnot called I am using a real device?

I am using a real device to get my current location the problem is the locationManager.location is nil and the function didUpdateLocations is not called. var location = CLLocationManager() @IBOutlet weak var map: MKMapView! override func…
Alaa Mamdouh
  • 3
  • 1
  • 4
-6
votes
1 answer

How can I get the current city name for an Android device without using GPS?

I am currently able to get the city name in an Android application using GPS or network provider. I tried with LocationManager, but if GPS is off the location manager and location is null. To improve the battery performance I don't want to turn on…
John
  • 1,407
  • 7
  • 26
  • 51
-8
votes
1 answer

Track user location through mobile number

I want to create an application, when I enter any mobile number it should give me current location of that number. Guys please help me if it is possible then tell me how it is possible ?
1 2 3
70
71