android-location Questions

9

I have a project in which I need to get the location as India. But in my emulator I am not getting the location. I need to get the location as India when I take the google maps from my emulator, ...
Orobanchaceous asked 28/11, 2017 at 9:26

8

Solved

I can't get the "Allow all the time" prompt for location in SDK 29. I already set these permissions in the manifest: <uses-permission android:name="com.google.android.providers.gs...
Rhymester asked 20/5, 2020 at 9:12

7

Solved

I'm developing an android application which deals with capturing location coordinates with GPS. I'm also getting the last known location details (via locationManager.getLastKnownLocation(LocationMa...

3

Solved

I need to share location from my app using the share intent activity, I have gone through some examples and know how to implement share intent. However I am stuck at setType. I need my application ...
Singlestick asked 1/10, 2012 at 6:40

3

Solved

To request the last known location of the user's device, we can use the fused location provider to retrieve the device's last known location using getLastLocation(), but using getCurrentLocation() ...
Flacon asked 8/5, 2022 at 8:54

3

In my application I'm checking whether the GPS is enabled on the user's device, and if not I would like to send him to the Settings to let him turn it on. Intent intent = new Intent(Settings.ACTIO...
Antigorite asked 4/3, 2013 at 10:47

4

Out of nowhere, the build is crashing with a strange error related to the location component , the error is in the "src..\location\FlutterLocationService.kt:" Here is the error: e: C:\src...
Intemerate asked 20/4, 2022 at 8:49

6

Solved

How can I prompt the user to turn on Location? The app is supposed to filter a list of locations with the current location of the user. If the user has the Location service turned off, the app s...

2

Solved

I recorded an espresso test with Espresso Recorder. I want to test some location changes in my app. Currently I'm mocking the location with this code: LocationManager lm = (LocationManager) conte...

8

Solved

In my application, I get the current location's latitude and longitude when application is open, but not when the application is closed. I am using Service class to get the current location latitu...
Emulsion asked 8/7, 2013 at 4:26

5

I want to get my current location in the form of an address by GPS. I am using the android studio. It is saying that my application stops working. What is the error in it? Can someone help me ...
Obrian asked 10/9, 2019 at 3:5

2

Solved

In my app im getting the phone's location via this function, but when I restart the phone and start the app I get null from this method. Is there something that im missing or doing wrong? What shou...
Saturnalia asked 27/1, 2015 at 14:52

12

I am getting an error in the onAddGeofencesResult(int statusCode, String[] geofenceRequestIds) callback with statusCode = 1000. I have my GPS enabled and my WiFi. I also have Google Play Services a...

2

I have issues with my app recently, when it is out of nowhere rejected by Google Play because they found that I'm using background location. But in fact I'm not using this feature. I have only ACCE...

2

When I went to update my app on Google Play, I saw a warning about something called "Sensitive app permissions" that I haven't seen before. It seems to concern call, SMS, location and fil...

1

According to this the flag Settings.Secure.LOCATION_MODE has been depreacted in API 28. Is there an alternative way to write this setting? (I'm not interested in reading this value, which can be do...
Marlyn asked 13/3, 2019 at 10:55

5

private void turnGPSOn(){ String provider = Settings.Secure.getString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED); if(!provider.contains("gps")){ //if gps is disabled final ...
Kekkonen asked 20/4, 2017 at 11:39

1

Let's say I want to build an app which requests current location periodically (e.g., every 10 minutes, this number should be configurable) and submits to a server. I'm aware that Foreground Service...

3

Am using GPS to get the Users Location, In Samsung Galaxy S5(klte) with Android 5.0 shows error like java.lang.IllegalArgumentException: provider doesn't exist: gps but the device have GPS. Can tel...
Brett asked 14/3, 2016 at 7:44

0

The Problem I am working on the application which is listening for NMEA messages, to do so I am adding NMEA listener like this locationManager.requestLocationUpdates( LocationManager.GPS_PROVIDER,...

2

Is it even possible? I would like to be able to create a listener which will be notified about location permission changes (whether the app triggers them or not). As far as I can see, there are met...
Strangulate asked 13/7, 2018 at 14:20

9

Solved

I need to get the city and state from latitude and longitude. Geocoder does this function to get the city and state. But I am getting an error java.io.IOException: grpc failed in below line only on...
Counterinsurgency asked 16/11, 2017 at 13:53

9

Solved

i need to get distance between two location, but i need to get distance like blue line in the picture. I try next: public double getDistance(LatLng LatLng1, LatLng LatLng2) { double distance = ...
Laquanda asked 19/8, 2013 at 9:9

4

Solved

In order to use the Geofence API the user has to give the app ACCESS_FINE_LOCATION. This location is considered to be dangerous and can be revoked at any time; once this permission is revoked, the ...
Blacken asked 16/4, 2019 at 9:47

3

Solved

I am using Google Places API for Android - PlaceAutocompleteFragment API in my project to search locations, when user selects a location then get the records using location lat-long and display it ...

© 2022 - 2025 — McMap. All rights reserved.