Questions tagged [location-provider]

117 questions
6
votes
1 answer

How to get Location with Wifi in Android?

I Want get location with Wifi and work in Google map, and it's not work for me but Gps is okay and not problem. my code: locationManager = (LocationManager) getSystemService(LOCATION_SERVICE); if (locationManager != null) { boolean gpsIsEnabled…
sr.farzad
  • 665
  • 3
  • 8
  • 23
5
votes
1 answer

Alternative to the use of hashbangs in the url to resolve IE9 issue

I'm creating a search application in angularjs with these settings: App Config: app.config( [ '$locationProvider', function ($locationProvider) { $locationProvider.html5Mode({ enabled: true, …
5
votes
2 answers

AngularJS: Relative link paths are broken when html5mode(true) is on

I've been searching and I've found "solutions" to this problem, yet I still can't get this to work right. The Scenario: I'm building an Angular (version 1.2) website with the UI Router and running it on a Node server on localhost. I'm trying to…
5
votes
1 answer

Issue with html5Mode in angularjs

I'm trying to remove index.html of the url using html5Mode(true) in angularjs, this is the code: angular.module('myApp', [ 'ngRoute', 'myApp.filters', 'myApp.services', 'myApp.directives', 'myApp.controllers' ]). config(['$routeProvider',…
Alavaros
  • 1,665
  • 7
  • 32
  • 52
5
votes
1 answer

possible to disable $locationProvider and $routeProvider?

Can I disable these fellas? I am using angular.js in asp.net mvc app, and I don't need angular to control anything related to address bar or the links... Right now in html5 mode disabled ($locationProvider.html5Mode(false)) it adds hash and action…
iLemming
  • 34,477
  • 60
  • 195
  • 309
5
votes
3 answers

android GPS calibration

When moving a big distance, like to another city, with the GPS off, it takes very much time for it, when turned on, to get the first correct point. So if by example I register to the gps provider, it could take up to 10 min until the first…
5
votes
1 answer

How do I stop the user waiting for a long time to get a location fix?

I am building a GPS Android application which gets the nearest places based on the user's current location. This is what my application does: Check if GPS or Network is available If neither is available then don't do anything. Else, we first check…
Johnathan Au
  • 5,244
  • 18
  • 70
  • 128
5
votes
2 answers

Android - It takes long to get a GPS-Signal. How to implement a good GPS provider?

i wrote an app, that tracks the gps location while jogging. Unfortunately the app needs some time to get a gps signal. When i open other apps like google maps, they are getting immediately the position. My Problem is: How to implement the…
sdev
  • 53
  • 1
  • 1
  • 4
4
votes
3 answers

Get precise Android GPS-Location in Python

I try to obtain the GPS-Location of my Android Phone in Python (using QPython3 app). This kind of works, but it seems there are several LocationProviders in Android: gps: pure gps location, slow, energy consuming, but very accurate, and exactly…
GosuSan
  • 109
  • 1
  • 3
  • 11
4
votes
2 answers

AngularJs route making HTTP call to the server when html5Mode is true

I have set html5Mode to true in my application. I have the routes defined as follows: app.config(['$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider) { $locationProvider.html5Mode(true); …
jsbisht
  • 9,079
  • 7
  • 50
  • 55
4
votes
1 answer

Is possible to mock locations with Google's new fused location provider?

Is it possible to get applications such as FakeGPS to work with the new fused location provider (Google Play Services)? I believe this is the issue: 09-20 17:18:41.842 21753-21809/? W/LocationManager﹕ java.lang.IllegalArgumentException: Incomplete…
loeschg
  • 29,961
  • 26
  • 97
  • 150
4
votes
1 answer

Accessing GPS is not working. Application uses network to getting location

My app doesnt want to use GPS and using network to get location instead. I checked that by analysing latitude and longtitude, they're a little bit random (like network location). If I use another app using GPS (e.g Endomondo Sports tracker) I see…
krzakov
  • 3,871
  • 11
  • 37
  • 52
4
votes
4 answers

Android. How to know if location detected is from GPS or Network provider

I'm trying to implement an application which senses position from both GPS and the network provider and shows it on a Google Map. I succeeded in doing this, but I have a question: I get the provider in the onCreate() of my Activity (it extends…
4
votes
1 answer

Android location manager returns same gps coordinates every time

I am creating an app to send the phones location to my server. The issue i have is that the phone gives me the exact same gps coordinates every time i start the app. When i restart it the coordinates can change, but after the first coordinate is…
JohGis
  • 71
  • 7
3
votes
1 answer

Android: Force use of Wi-Fi as Location Provider

As I understand it, I have three location providers to choose from: GPS, Network and Passive. I would like to obtain my location by detecting the Wi-Fi network I'm connected to, I believe both Cell Triangulation and Wi-Fi location determination is…
bdls
  • 4,578
  • 6
  • 24
  • 30