Questions tagged [android-gps]

Android's GPS device and related API features.

Android provides a Location and Sensors API for programmatical access to its GPS device.

733 questions
-2
votes
1 answer

Turn on/off gps using button without getting into setting menu

I want to ask about turn on gps in android without getting into setting menu. 1. Does that method possibly to do? 2. If yes how to do that? Thank you.
-2
votes
1 answer

Cannot resolve method 'setWebChromeClient(anonymous android

I am trying to learn building applications for Android and the first project is to view a website I've made that uses GPS localization. But when I'm trying to use webView.setWebChromeClient(... I'm getting the following error message: Cannot resolve…
Airikr
  • 6,258
  • 15
  • 59
  • 110
-2
votes
1 answer

How to get the location when GPS/LOCATION is turned off?

I want to get the Lat/Long of a device when its GPS is turned off. I tried few tutorials but am not able to get the Location when GPS is off. Is there any way to do it?? or GPS is compulsory? Looking for help. Thanks in advance.
MUKUND U
  • 44
  • 6
-2
votes
1 answer

How can I get the lattitude and longitude of someone in Android?

Actually I want to calculate distance between two user's coordinates. Is there anywhere that would be a good place for me to start with GPS feature on Android, or that has a good example of how to use GPS? I don't want anything deep, literally just…
laksh
  • 1
  • 1
-2
votes
1 answer

Wi-Fi Direct for wifihonk in VANET without connections

Recently I'm doing a project about broadcast my location infos (latitude, longitude, bearing and speed) from gps module in smartphone, then ppls or drivers who are closer to each other could get the distance and avoid the collision(actually part of…
Murphy Wu
  • 3
  • 2
-2
votes
1 answer

Block Camera, shutdown option and keep GPS and mobile data enabled - android

I got a small project. Company will provide android phones to their employees and company do not want them to access camera and shut down their phone and also they should not be able to disable GPS or Mobile data. I'm new to android development.…
-2
votes
1 answer

Android - Is there a way to bypass the need to request user permission for gps?

I am developing single application mode in android, in which there is no need to request for user's approval. It even can be done as Native application (ndk) on root device. But still, I am not sure if there is a way to handle it with GPS…
ransh
  • 1,589
  • 4
  • 30
  • 56
-2
votes
1 answer

How to use both GPS & NETWORK_PROVIDER, and with almost no error in their results

I am developing an Android application in which I am using current location of my device. I am using requestLocationUpdates("gps", 5000, 0, new LocationDetector()); method of LocationManager for getting updates. And inside onLocationChanged() method…
Sajal Ali
  • 427
  • 1
  • 10
  • 21
-3
votes
1 answer

System.currentTimeMillis() gets disturbed when user manually changes time

I am building application which is time sensitive i.e. some tasks need to be completed within certain time. There are multiple ways to get the time i.e. System.currentTimeMillis() and gpsLocation.getTime(). I don't want to use…
Mustansar Saeed
  • 2,730
  • 2
  • 22
  • 46
-3
votes
1 answer

How to get FULL length GPS coordinates?

I just found out that my GPS is returning shorter length latitude and longitude coordinates. It's returning latitude: 00.0000000 (9 chars) Instead of: 00.00000000000000 (16 chars), Due to the length, when I use my Geocoder it returns different…
SET1
  • 29
  • 4
-3
votes
1 answer

get current GPS location only when button is clicked and stop using GPS after that

I want to get current GPS location of my device when button is clicked. I don't want my app to continuously check for location updates. So is there any way to get current GPS location of device only when button is clicked and stop using GPS after…
Raees Khan
  • 371
  • 1
  • 5
  • 20
-3
votes
1 answer

Google Geo-fencing App

I am trying for google Geo-fencing it throw error runtime: E/AndroidRuntime: FATAL EXCEPTION: main Process: com.bipin.geofencexample, PID: 23251 java.lang.SecurityException: Geofence usage requires…
-3
votes
1 answer

How to show my current location in maps in android as soon as the app starts the map activity

What to do so that as soon as i open the map activity of my app it will show me my current location on the google maps and fills the text view with the current street address.I searched a lot but didn't got any way to do this.even the runtime…
Shubhendra
  • 117
  • 1
  • 13
-3
votes
1 answer

Android GPS saving current location in Mysql with php

I have this code, which shows me the ** latitude ** and ** longitude ** of the user in a Toast in a time interval, but I need to save this information inMySQL every time the system updates the location . I'm really needing this code to complete a…
-3
votes
1 answer

How can i leave a room when my game is finnished - Google Play Services - Android

I've successfully integrated GPS realtime multiplayer into my game & it's working good. Though. When a game is finished, players stays connected to each other.. How can i disconnect a player manually from the game? So when the game is finished, the…
Gose
  • 1
  • 1
1 2 3
48
49