I am creating a locationrequest object of the LocationRequest class whose methods are used to determine the level of location accuracy my app needs.
private LocationRequest mLocationRequest;
mLocationRequest = new…
I've been playing around with FusedLocationProvider and I found that if your phone's Location Mode is set to "Device Only" (changed in Settings - it means only GPS is enabled for location. Wifi networks and cell towers aren't used to improve…
I'm getting the following crash on certain devices API 6.0+:
Fatal Exception: java.lang.SecurityException: Client must have ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission to perform any location operations.
at…
I want to set mock location for specific app only. So far, what I have understood is, if I set GPS provider with some mock location then, all apps accessing location through GPS will receive mocked location. Can it be made app specific? (means only…
We have a location based application, where based on the users location we are trying to push some notifications of campaigns. But this seems to be draining the battery of the phone and at times consuming up to 30-35% of the charge.
Below is the…
I have a service which should capture the user's location and current battery level and send it to my firebase backend. For some reason it seems like whenever I have this service enabled in my app, my app will randomly open without any user…
Do Android devices need internet when using network provider for location fetching? I see few articles saying it works without internet and few saying it needs internet.
I am looking more into how Android internally does location fetching (rather…
I'm having the following error on android 21 and above.
I'm having the following error, and there is no restriction on manufacturer or model for the error.
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String[]…
I have an app which takes the location and sends it to a server. I get the following errors which I have no idea from where they came from:
11-05 02:47:11.699 27839-27839/? E/Zygote: MountEmulatedStorage()
11-05 02:47:11.699 27839-27839/?…
I have a problem in the accuracy of geofences because user's location is mostly determined by mobile networks which sucks completely.
My app uses geofences around selected places that will perform some action when the user enters these places...I…
I want to set Dutch Language in my TTS object. Following is the code,
@Override
public void onInit(int status)
{
if ( status == TextToSpeech.SUCCESS )
{
int result = tts.setLanguage(Locale.getDefault());
…
I already set permission. Why do I still get this error?
Caused by: java.lang.SecurityException: "gps" location provider requires ACCESS_FINE_LOCATION permission.
My manifest contents:
Using my Android application, when a user does a certain action, a background service is started that fetches the current GPS location and saves it in a database in addition of doing some other stuff. In that service, I use the…
I'm using Fused Location Provider library in android. It is working perfectly fine. But I've an issue with it, it returns location updates in 5 sec minimum.
I've tried every thing like setting minimum updates time to 1 millisecond, and distance to…
In My Device( Karbon A 21 Mobile Phone) , When Google Play Services are not installed, my location object is null and while Google Play Services installed, it returns correct location.
I know that I can check if Google Play Services are installed…