Questions tagged [location-provider]

117 questions
138
votes
3 answers

Android Location Providers - GPS or Network Provider?

In my application I would like to determine the user's current location. I do however have a couple of questions in this regard: There are different Location Providers, which one is the most accurate? The GPS Provider or the Network Provider? In…
Noman
  • 4,049
  • 10
  • 38
  • 59
123
votes
13 answers

Best way to get user GPS location in background in Android

In my android app i want to get user current location every few minute interval and update in to my center server using web service. Currently i am using Fused Location Provide for get user current location, See link now i want to know what is the…
Ravi Bhandari
  • 4,682
  • 8
  • 40
  • 68
48
votes
5 answers

Turn off URL manipulation in AngularJS

I'm trying to write my first web-app with Angular. In the normal mode (html5Mode off), Angular forces the address's hash part to look like a "path" (adding a leading "/"), and encodes special characters - for example, it allows a single "?" and "#"…
Oren
  • 2,767
  • 3
  • 25
  • 37
45
votes
5 answers

How to trigger broadcast receiver when gps is turn on/off?

public class BootReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { if (intent.getAction().matches("android.location.PROVIDERS_CHANGED")) { Toast.makeText(context, "in…
Teekam
  • 939
  • 4
  • 14
  • 26
28
votes
2 answers

Is there a built-in way to get the current URL without any query parameters?

If my URL is http://www.something.com/foo/bar/index.html?color=yellow&animal=rat, it seems as though: $location.path() will return foo/bar/index.html $location.absUrl() will return…
Jer
  • 5,468
  • 8
  • 34
  • 41
25
votes
3 answers

IllegalArgumentException: provider doesn't exisit: null on Maps V1

I'm using Google Maps API V1. I have this error : java.lang.IllegalArgumentException: provider doesn't exisit: null This is my code : locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); Criteria…
user2903095
13
votes
2 answers

android get location from best provider available

I have this code to get the best available provider lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE); locationListener = new MyLocationListener(); Criteria criteria = new…
spagi
  • 1,457
  • 4
  • 16
  • 19
10
votes
6 answers

Turn on Location Providers Programmatically in Android

Is it possible to turn on LocationProviders(GPS Provider/Network Providers) on Device programatically, if it is turned off?
Prem Singh Bist
  • 1,273
  • 5
  • 22
  • 37
10
votes
4 answers

Location updates not working indoors as claimed by Fusion Location Provider APIs

Issue: Location updates not working indoors as claimed by Fusion Location Provider APIs. What happened: I tried implementing the latest location API to get location updates using LocationClient in my Android App. My android app works fine with out…
talasila
  • 268
  • 1
  • 3
  • 9
9
votes
3 answers

Fused Location Provider in Android

I am developing an app using Fused Location Provider. I have a doubt. For getting location in regular intervals it uses requestLocationUpdates(). But from which source is it get the location either from WIFI or GPS or Network. In my app, it gets…
9
votes
3 answers

How to use both GPS and Network Provider to get current location Latitude and Longitude values in Android

In my Android application, I want to use both the GPS provider and the network provider for location updates for 5 seconds. First, I would like to use GPS provider (because it gives accurate results), and if the GPS provider returns latitude and…
user1195614
  • 385
  • 2
  • 8
  • 20
7
votes
1 answer

Alternative to FusedLocationProviderApi

I don't want my app to rely on Google APIs. Are there any open source alternatives to FusedLocationProviderApi that allow to combine standard GPS and Network providers?
6
votes
0 answers

Read the `Power Saving Modes` settings on the MIUI devices

The Power Saving Modes settings is different from the regular Android OS Power Saver setting and accessible on MIUI devices only (or rather accessible at least on MIUI devices) Settings -> Battery & Performance -> Manage apps battery usage The…
Mando
  • 11,414
  • 17
  • 86
  • 167
6
votes
1 answer

Installing a new Location Provider

There is an entry in 1.5 of the SDK for installLocationProvider. That entry is marked: @hide. I would like to provide an alternate location provider, the why is not important, just the how. Does anyone know the "trick" for using the…
6
votes
1 answer

A-GPS, resetting GPS and sendExtraCommand

I am after a pointer to some information explaining all this. I have a GPS utilising app (being tested on a couple of old HTC Desire phones and a Google Nexus 7), and I notice that - in common with some other apps - GPS location updates can get…
nmw01223
  • 1,611
  • 3
  • 23
  • 40
1
2 3 4 5 6 7 8