Why does GPS have to reacquire when switching from one GPS app to another? - Samsung Galaxy Nexus

Jellybean 4.1.1 & 4.1.2 CM ROM
With GPS turned on, switching from one GPS app to another it takes about 20 seconds for the app to relocate itsself. The GPS has to go thru the entire reacquire sequence.
It seems GPS (even if its turned on in settings) really only gets turned on and off when an app requests it forcing it to reacquire.
IMO the GPS should be turned on all the time if its ON in the settings.
Whats the point of the on switch if its not really on? If thats the case eliminate it. The app can handle GPS location ON OFF

Hemidroids said:
IMO the GPS should be turned on all the time if its ON in the settings.
Whats the point of the on switch if its not really on?
Click to expand...
Click to collapse
That's crazy talk, do you have any idea what leaving GPS on all the time would do to battery life?

pfmiller said:
That's crazy talk, do you have any idea what leaving GPS on all the time would do to battery life?
Click to expand...
Click to collapse
I leave mine on all the time. Of course I know which apps use it and I set them up accordingly

adrynalyne said:
I leave mine on all the time. Of course I know which apps use it and I set them up accordingly
Click to expand...
Click to collapse
No, you have it enabled all the time. I do too, but it's only on when your apps are using it. You seem to understand that, but that's not what the OP is talking about.

pfmiller said:
No, you have it enabled all the time. I do too, but it's only on when your apps are using it. You seem to understand that, but that's not what the OP is talking about.
Click to expand...
Click to collapse
You say potato...
You knew what I meant

I agree. I don't like that when you find a place in Google Maps and then Navigate to it, the GPS has to reacquire. There should just be a 10-20 second delay between closing a GPS app and the GPS actually turning off. Something like that.

clobber said:
I agree. I don't like that when you find a place in Google Maps and then Navigate to it, the GPS has to reacquire. There should just be a 10-20 second delay between closing a GPS app and the GPS actually turning off. Something like that.
Click to expand...
Click to collapse
Doesn't even need to keep it on. If it knows the last good fix was only 5 seconds old then it should use that as a pretty good start for your current location.

Completely agree open up maps, to look for something forgot the name go to google now... and waiting... just leave it on for 10 damn seconds i can live with 10 minutes less battery life

pfmiller said:
That's crazy talk, do you have any idea what leaving GPS on all the time would do to battery life?
Click to expand...
Click to collapse
Hemidroids said:
The app can handle GPS location ON OFF
Click to expand...
Click to collapse

Actually in the previous version of Maps I was pleasantly surprised to notice that the hand-off from maps to navigation did not release the GPS lock.
I am not sure if they changed it back but my point being - hand-off from app to app can clearly be done more intelligently but again in the case of Maps we know that Navigation and Maps are the same app essentially so may be it was easier to do it.

The app already does handle turning GPS location on and off, that's not what the GPS permission toggle is for.

Related

Auto agree to location consent.

Is there any way...either an app or a tasker task/script that will automatically agree to the location consent box that pops up when GPS is turned on?. I'm finally getting annoyed by it lol. I'm hoping there's gotta be some way around it.
Sent from my Galaxy Nexus using Tapatalk 2
I never noticed. Why not just leave GPS on always? It doesn't hurt anything.
Just leave GPS on. It doesn't use battery unless its being accessed for location for an app. You spend more battery going to settings toggling it on and off over and over.
martonikaj said:
Just leave GPS on. It doesn't use battery unless its being accessed for location for an app. You spend more battery going to settings toggling it on and off over and over.
Click to expand...
Click to collapse
Somewhat true. The Facebook app is buggy, if you have GPS on... and you turn Facebook on (even though location is disabled).
GPS remains on your status bar... even if you go back to home screen. At least that's my reasoning for having it disabled.
zephiK said:
Somewhat true. The Facebook app is buggy, if you have GPS on... and you turn Facebook on (even though location is disabled).
GPS remains on your status bar... even if you go back to home screen. At least that's my reasoning for having it disabled.
Click to expand...
Click to collapse
Use Facebook every day and never had that issue.
Convert whatever is asking for GPS to a system app.
Pretty sure that'll do it.

[SOLVED] Wi-Fi won't turn off in sleep [post-JB update]: how to diagnose?

SOLVED: See this follow-up post; it's one of those 7 things!
Hi! After updating to LK3 (the stock 4.1.1 JB update), my Wi-Fi stays on even after I put the phone to sleep (contrary to the setting "Keep Wi-Fi on during sleep: never (increases data usage)." See attached pics.
I have disabled thus far:
1) Google Now
2) Location Services "Use wireless networks" and "Location and Google search"
3) Location reporting: now set to "Location manually selected on the map"
4) Latitude location sharing
5) Location history
6) Automatic check-ins
7) Check-in notifications
Basically, everything I could find related to location. But, alas, that battery screenshot is after I changed all of those! Wi-Fi isn't on constantly, but it stays on way longer than just when I have the screen on.
What are my options here? How should I diagnose this sucker? I ran BetterBatteryStats, but they said it looked fine with my log (some apps, through the ambiguous "Alarms" partial wakelock, were the largest cause, but only accounted for 3.6% of the time).
I'm pretty sure this is a post-update problem, as before, whenever I unlocked my phone, I got the little notification, "Connected to #SSIDName#" and the Wi-Fi icon would obviously, then, be off for the first few seconds (and when I opened my browser too quickly, I'd get a "Page cannot be displayed" error).
Thanks in advance, I'll take any ideas/thoughts/help/sympathy/antipathy you can offer,
Same problem here. Before the update, it was doubletwist air sync forcing wifi on at all times. That's disabled now, so I have not clue. Hopefully somebody figures it out. Mine isn't even intermittent, it's always on, and I have the same setting as you.
So, I left my phone alone for the night and these programs used Wi-Fi while the screen was off:
Do you have any of the same apps? I'm going to uninstall Google+, Facebook, and GroupMe today and run this again tomorrow. But, looking at pure download amount, it's something on the OS....
If you're interested in doing the same, the app is My Data Manager ( https://play.google.com/store/apps/...e&utm_medium=organic&utm_term=my+data+manager).
Basically, install the app, but do not open it. When you're ready for bed (or any extended period of not using it), open it, and then minimize it (runs in the background). Hit your sleep button immediately (we don't want to capture anything of the phone when the screen is on). Then, when you wake up/need to use it, wake it up, immediately disable Wi-Fi (again, no artifacts from when the phone was awake), take a look at My Data Apps (2nd page), Wi-Fi.
I'll let you know how my second attempt goes.
The only one I have is Facebook, but yeah it definitely looks like the os.
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Well! Maybe I should have given it a little while longer, as it seems to be quite a bit better!
It still stays on longer than the screen, but now at least it shuts off once in a while, haha. It was either uninstalling Facebook, gMail, or GroupMe OR disabling one of those earlier settings...it's still not totally fixed, though. I found the Network Counter app which seems to be a little more specific, so we'll see how it goes tonight,
~Ibrahim~
Hmm this is what mine looks like from today. Wifi didn't go off until I did it manually.
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Have you disabled the location stuff? Those are what really helped me. I'm off to run the overnight test, with the new app!
i am having the same issues. my wifi since the jelly bean update has been always on.... the wifi bar in battery settings is solid and has never been off.... so frustrating.
Try "Green Power" app.
I use it to disable both wifi and data 20secs after screen off.
There is a Whitelist and a minimum threshold trigger too.
It works PERFECT in ICS.
At bedtime, I get .5% hr battery drain or better.
themadproducer said:
Try "Green Power" app.
I use it to disable both wifi and data 20secs after screen off.
There is a Whitelist and a minimum threshold trigger too.
It works PERFECT in ICS.
At bedtime, I get no less than .5% hr battery drain.
Click to expand...
Click to collapse
Awesome, thanks for the info! Exactly, I don't mind Google Now using the Wi-Fi, but then that opens the door for everything to use the Wi-Fi which will kill the battery when I get back to work.
Network Manager didn't work for some reason, so I tried Data Detective, but the stupid app consumed 90% of the Wi-Fi last night!
The only thing I've heard against battery savers is that they force apps to not use the data, and then they keep asking (creating overhead). I wouldn't have believed it out right except it came from the developer of BetterBatteryStats. But your battery loss isn't bad at all (overnight I average 0.4%/hour with the screen off).
ikjadoon said:
(overnight I average 0.4%/hour with the screen off).
Click to expand...
Click to collapse
I slightly edited my statement. I get .5% hr or better.
Curious...if you average .4%...
- what rom?
- and what is your lowest cpu freq?
- and is that with data and wifi off?
themadproducer said:
I slightly edited my statement. I get .5% hr or better.
Curious...if you average .4%...
- what rom?
- and what is your lowest cpu freq?
- and is that with data and wifi off?
Click to expand...
Click to collapse
Haha, right, I thought that's what you meant!
I'm on stock AT&T. Everything is stock; CPU Spy tells me 384Mhz. WiFi on, data off.
Why don't you guys disable it in settings? Open Wi-Fi in settings. Click menu button. Click advanced. Turn off Wi-Fi during sleep. Ta-da!
Sent from my SAMSUNG-SGH-I747 using xda premium
Ends said:
Why don't you guys disable it in settings? Open Wi-Fi in settings. Click menu button. Click advanced. Turn off Wi-Fi during sleep. Ta-da!
Sent from my SAMSUNG-SGH-I747 using xda premium
Click to expand...
Click to collapse
Yeah, that's an alternative...but if I have a setting that's supposed to turn it off when it goes to sleep, I'd like it to do that.
stbtigerr said:
Yeah, that's an alternative...but if I have a setting that's supposed to turn it off when it goes to sleep, I'd like it to do that.
Click to expand...
Click to collapse
That's right, well said....hence the opening post!
I have the same issue, wi-fi is always on unless I turn it off.
I'm happy. It's one of those location settings in the first post that caused the locks! Let me know if it works for you guys,

[Q] gps always on

Hey guys my friend has the vz HTC one and her GPS is always on. I turned her GPS off and even disabled location services. I cannot figure out what is causing this but it's only giving her 1 hour of screen on time. I get over 4 on my att version no way it can be that different. When u go to power in settings and click on the graph it shows a solid blue bar for GPS on. Has anyone else experienced this, and more importantly does anyone know how to fix this? Thanks in advance.
Hmm, that doesn't seem normal. I leave both GPS and location services on all the time and my graph barely shows GPS usage.
This happens even when GPS is manually turned off? Is she running stock?
xenakis said:
Hmm, that doesn't seem normal. I leave both GPS and location services on all the time and my graph barely shows GPS usage.
This happens even when GPS is manually turned off? Is she running stock?
Click to expand...
Click to collapse
Yea I know it makes no sense....I do the same GPS is never on for me unless using maps.
Yes she is completely stock. I'm curious if either a wipe is necessary, which she is against or maybe a defective unit.
sdotfitz said:
Yea I know it makes no sense....I do the same GPS is never on for me unless using maps.
Yes she is completely stock. I'm curious if either a wipe is necessary, which she is against or maybe a defective unit.
Click to expand...
Click to collapse
Factory reset really is a pain in the a** but most of the problems I've ever had with Android have been solved with a reset.
Update.....I disabled Verizon location services wiped cache and data re enabled it didn't see her for a couple days and now it's working properly even with GPS on all the time. Not sure if that's what fixed it but it's the only thing I did, and she wouldnt have done anything.
When I first bought the phone, I turned on 4g, then turned it off..
but the 4g icon would stay in the status bar.
I was already at the VZW store for another reason so I went to show a rep, and of coarse, the icon goes away.
bahhh
hope to hear all is well with this!

GPS Signal Lost in IGO when not in focus

Anyone else have an issue with IGO, that when I switch to desktop or another app, after a few seconds i hear "GPS Signal Lost"
Its rather quick to re-establish a connection when i switch back but seems weird to not get a signal only because its not in focus.
While in focus its rock solid, never drops out.
Setting or known issue?
Always, but I've been got used and don't care...
Snap. Always does it.
Sent from my Hudl 2 using Tapatalk
It has to be an Android issue I had a Pioneer Navi unit (they use iGO) never lost signal once locked in, well as long as I didn't go in to a tunnel or parking structure, switched to Android and every time I look away it drops GPS but only for a second or two. I believe there is an advanced audio setting to mute the announcement of GPS signal loss, but I cannot remember if it's a GUI option or if it needs to be put in the sys.txt.
Try this settings in SYS.TXT:
[sound.announcer]
gps_signal_lost = 0; disables voicemail alert "lost signal GPS"
gps_disconnected = 0; disables voice notification "GPS turned off"
themissionimpossible said:
Try this settings in SYS.TXT:
[sound.announcer]
gps_signal_lost = 0; disables voicemail alert "lost signal GPS"
gps_disconnected = 0; disables voice notification "GPS turned off"
Click to expand...
Click to collapse
That may be a viable option, when its in focus i never loose signal....so really its just the voice announcement that annoys me when i switch to another App.
I used to use an app called active GPS, can be set to acquire a gps lock and keep it on boot, not sure if you are really losing the gps lock or if Igo just thinks it is.
jakejm79 said:
I used to use an app called active GPS, can be set to acquire a gps lock and keep it on boot, not sure if you are really losing the gps lock or if Igo just thinks it is.
Click to expand...
Click to collapse
Im not losing signal no......Its approx 5 seconds after IGO loses focus and it regains the signal immediately after i switch back.
Perhaps this is intentional to allow another App access to the GPS Signal.....ie only 1 App can have access at once, so they only keep it during focus?
Not sure but its peeing me off
Ill check if theres anything buried in IGO settings or the alternative (Not that i like working around a problem) is to quieten the "Lost signal" audio.
pants001 said:
Perhaps this is intentional to allow another App access to the GPS Signal.....ie only 1 App can have access at once, so they only keep it during focus?
Click to expand...
Click to collapse
Do you also have a weather widget running with its location based on GPS signal?
Maybe that app requires a temporary connection to the GPS port (that might not be shareable between more apps)...
themissionimpossible said:
Do you also have a weather widget running with its location based on GPS signal?
Maybe that app requires a temporary connection to the GPS port (that might not be shareable between more apps)...
Click to expand...
Click to collapse
Ye possible, I also noticed a setting in GPS menu to allow location based services. So might try with that off.
I'll have a play around and report back. :silly:
pants001 said:
Ye possible, I also noticed a setting in GPS menu to allow location based services. So might try with that off.
I'll have a play around and report back. :silly:
Click to expand...
Click to collapse
In Android there is no problem for multiple applications to use GPS signal at the same time. You can run 5 navigation apps and another 5 tracking apps at the same time if you have enough RAM. The OS access the GPS sensor and shares the information to apps.
The question is, what really happens. If you continue with iGo in the background, is it still navigating you? Do you hear the correct voice commands or is it really lost and has no idea where you are?
For me all Navigation application work even in background. They have a service (identified by an icon in notification bar) that runs even if the main app is in background. You should also check the GPS icon in navigation bar to see if GPS is shut down.
javlada said:
In Android there is no problem for multiple applications to use GPS signal at the same time..
Click to expand...
Click to collapse
I'm not completely sure about the following, but IMHO there is a difference between the smartphones and the MTCB head units for which regards the GPS receiver.
In fact, while generally in a smartphone processor (ex. Qualcomm) the GPS receiver is included in the chip itself, AFAIK in a Rockchip processor (ex. RK3188) the GPS chip is not present, but should be externally connected to the system through an internal serial connection (USB?) and managed by the MCU: for this reason there might be some sharing problems among apps, problems not occurring on a smartphone integrated architecture.
javlada said:
The question is, what really happens. If you continue with iGo in the background, is it still navigating you? Do you hear the correct voice commands or is it really lost and has no idea where you are?
Click to expand...
Click to collapse
Ye thats interesting coz this morning i had to go somewhere and used navigation as apposed to just having IGO open on Map.
When Navigating to a destination, you can swap to desktop and other apps and it still guides you with no Lost Signal being mention.
So its only when you have maps open, not using a route navigation and you put IGO into the background.
I assume its IGO giving up the lock on the signal for some reason.
Same issue. IGO drops GPS when focus is lost.
pants001 said:
Ye possible, I also noticed a setting in GPS menu to allow location based services. So might try with that off.
I'll have a play around and report back. :silly:
Click to expand...
Click to collapse
I just installed a new head unit 4.4.2 and I have the same issue with IGO. I will try a few things and see what I can find as well.
Will report back if I solve it. It is bloody annoying. I am positive it is an Android thing, not an IGO issue.
pants001 said:
Ye thats interesting coz this morning i had to go somewhere and used navigation as apposed to just having IGO open on Map.
When Navigating to a destination, you can swap to desktop and other apps and it still guides you with no Lost Signal being mention.
So its only when you have maps open, not using a route navigation and you put IGO into the background.
I assume its IGO giving up the lock on the signal for some reason.
Click to expand...
Click to collapse
That would make sense, it would be a battery saving feature, no need for a persistent GPS lock (that sucks battery life) if you are just following your location on a map (when the map isn't in focus anymore) but when navigating you want the persistent lock so you can continue receiving directions regardless of what app has focus. I suspect a lot of GPS apps act this way, they just don't announce it.
jakejm79 said:
That would make sense, it would be a battery saving feature, no need for a persistent GPS lock (that sucks battery life) if you are just following your location on a map (when the map isn't in focus anymore) but when navigating you want the persistent lock so you can continue receiving directions regardless of what app has focus. I suspect a lot of GPS apps act this way, they just don't announce it.
Click to expand...
Click to collapse
I think your right!
pants001 said:
I think your right!
Click to expand...
Click to collapse
Possibly
Google maps acts that way, with maps open, if you open another app, the GPS icon disappears on my phone, but comes back as soon as I refocus on maps, but if I am navigating somewhere then the icon stays there.
Not that it offers you any help but my gps icon is on all the time regardless of what app is or isn't running.
If the above theory is correct then your answer may lie in the power saving and lox location settings.
Sent from my SM-G920F using Tapatalk
---------- Post added at 06:27 AM ---------- Previous post was at 06:26 AM ----------
Lox is a typo!
Sent from my SM-G920F using Tapatalk
jakejm79 said:
I suspect a lot of GPS apps act this way, they just don't announce it.
Click to expand...
Click to collapse
But on a smartphone this battery saving behavior doesn't happen...
And on a HU there is no battery at all and no battery saving needs, on Android all apps should be able to detect if the device is on battery power or currently external power supplied...
themissionimpossible said:
But on a smartphone this battery saving behavior doesn't happen...
And on a HU there is no battery at all and no battery saving needs, on Android all apps should be able to detect if the device is on battery power or currently external power supplied...
Click to expand...
Click to collapse
It does happen, test for yourself, but the battery will drain quicker with Maps open and an active GPS lock rather than when another app is in focus and no GPS lock, that is also why the mode to not use active GPS is called battery saving.
Take that up with the developer, but I doubt they will build in an option that is only useful to a very small number of users.
Personally I don't understand why you need the map window open if you aren't actively navigating somewhere anyway.

GPS/Location lost when screen is off??

Hi!
I used to have no problems with this situation on any of my previous phones:
In apps that uses gps, like runkeeper, i get very fast gps lock.. but, then, once I disconnect the screen, the "location" seems to be turned off.. The gps track stops counting. When I turn the screen on again to check what is happening, the phone instantly gets gps lock and registers that new spot. Basically what happens is that I will get a track but, instead of having the full track, I only get "straight" lines between the points the gps locked when i turner the screen on to check what was going on..
I have the location in high accuracy..
Any ideas?
Thanks!
I have the Impression there is a different location provider for the new chipset. When i am at places without any gps signals (for example a tunnel) the reported location is moving with the same speed and direction i had before coming into the tunnel. There also a change in my Google location history. When the screen is off it looks like the location is provided by phone cell only. The reported location is more than 300m away from my real location. I have not seen this in the same locations with my older phones. (Edit: All with Oyxgen OS 3.1.2)
I have the same issue as op on 3.1.2, not rooted.
Sent from my ONEPLUS A3000 using Tapatalk
I have this stupid thing also, stupid phone,
The gps loses the fix right after you leave the app that uses it. It doesn't work in the background, I'm gonna have to return my phone sadly.
So does this happen with the newer firmware? Can you put it in the background with the screen on and it run? It seems like a software issue more so than hardware, maybe I'm wrong but who knows..
Sent from my SM-G935T using Tapatalk
obviously a software issue, but they won't fix it since nobody talks about it. If you switch to another app that doesn't use GPS or turn off the screen the phone loses the fix right away.
Still happens with Oxygen OS 3.2.0
Can you give a try launching a nav session in google map. On my lg G2, when I get a fix in google map then turn the screen off, I will loose my fix. But if I launch a turn by turn nav session I will keep my gps fix even if I turn the screen off.
Could this be related to doze hibernating Maps or whatever app /?
Jfxmedia said:
Could this be related to doze hibernating Maps or whatever app /?
Click to expand...
Click to collapse
Yes. This is likely related to the aggressive Doze mode that has plagued users in receiving notifications. Try disabling Doze by following the instructions in the link below and try GPS again. If it works, then Doze is the cause.
https://forums.oneplus.net/threads/push-notification-issues.451149/
Mit Hipster said:
Yes. This is likely related to the aggressive Doze mode that has plagued users in receiving notifications. Try disabling Doze by following the instructions in the link below and try GPS again. If it works, then Doze is the cause.
https://forums.oneplus.net/threads/push-notification-issues.451149/
Click to expand...
Click to collapse
Anyone tested this with success?
Turn off power saving mode for using GPS while turn off screen
I have used Strava and it can not be received GPS signal when screen off. Then I turned off power saving mode and it was OK.
Porsche.V said:
Anyone tested this with success?
Click to expand...
Click to collapse
its dose feature that's interfering. I had the same issue. disabling dose does the trick.
dpj52190 said:
its dose feature that's interfering. I had the same issue. disabling dose does the trick.
Click to expand...
Click to collapse
And this is why I make my rom that disables doze all together. It kills battery more then it saves.

Categories

Resources