yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] chamonix:
I will double check on the notifications and also make the enabling / disabling of the foreground service more user friendly: you should not have to reboot or restart an app to change settings so that's a bug: https://github.com/asksven/ALTitude/issues/54
[Android Apps and Games] cdmackay:
Rebooted, still getting notifications...
[Android Apps and Games] 93ae8074:
Indeed, thanks chamonix.
[Android Apps and Games] Tritonio_GR:
EDIT2: Never mind this. I just noticed that my wifi was off and 3G wasn't connecting for some reason. I don't know if that was the case before the restart though. I would bet I had a wifi connection, that there were no buffered locations but you'd better not start a bug search based on that. If it happens again I'll report back.

Latitude hasn't updated my location for ~2 hours. The service is running and most settings are the default. I am attaching screenshots of the program saying that it hasn't updated since 2pm and it's now 4:18pm. The service has been running for more than 50 hours.

Usually Latitude works and I haven't changed anything the past few days.

Oh and it really hasn't updated my position as my friends say.

I made the service forground 10 minutes ago. And right now I saw it restarting in the "running services". Aaaaand it updated my position. So I guess the service gets stuck sometimes? Running but not updating the position? And I got it to restart by making it foreground?

EDIT: It happened again after restarting the phone. The service is running but it hasn't updated my location during the past 4 hours.
[Android Apps and Games] Rob2222:
I have similar problems. Sometimes it doesn't update the location. I just deleted ALTitude App data and reconfigured it. Doesn't help.

Foreground on, passive off, 15 minutes. 3G online all the time.

Opened Altitude and it says location updated 15:47 and now its 17:01.

Now i was just in the Altitude settings and now it says location updated 17:02.

When I have set it as foreground and 15 minutes and being online all the time, then opening Altitude should never report a time older than 15 minutes, or?

BR

Robert
[Android Apps and Games] chamonix:
Thanks for your feedback guys: it looks like I have broken something so I just added some specific logging and will check my phone during the day.
[Android Apps and Games] Tritonio_GR:
Uh... I had to do a wipe on my phone and when I restored everything with Titanium, Altitude just force closes all the time. I tried to delete Altitude's and Licence's data, I even reinstalled them from market after uninstalling them but still whenever I launch Altitude it FC and after a few seconds a second FC comes up (probably from the background service).

Any other place where altitude stores data that I can wipe?

I reported the error and put 'tritonio' in the details if you wan tto check it out.
[Android Apps and Games] chamonix:
There is nothing to wipe so that's not the cause. Unfortunately Google Play is slow on providing log info so it would be great if you could provide a logcat taken after the FC here as file attachement.

One thing I saw as a possible cause and that you could try: one FC condition is due to no location provide being available. Of course this is a bug and will be fixed in the next release but you should make sure you have at least "cell location" enabled as location provider. I tried to disable in on my phone a few minutes ago and go an FC condition.

If that does not help please feel free to post alogcat
[Android Apps and Games] superbobup:
Hi chamonix,

After the awesomeness that is BBS and seeing your recommendation for ALTitutude, I purchased the license after a few weeks of testing out the free version :highfive: However, I don't seem to get the licensed features...I've tried uninstalling both "free" and "license" but neither works...any ideas? I feel like I'm just derping it and missing something obvious :silly:

Thanks for the great app! :good:
[Android Apps and Games] chamonix:
What does the main screen say on the first line?
[Android Apps and Games] chamonix:
You have to be careful interpreting frequence and precision. As the sdk states the location is not being updated 'at least' as often as specified.

In other words setting frequency to 15 minute won't get you an update every 15 minutes if you are not moving. I have tracing enabled on my test version right now and can see that updates happen regularly when I move (cells) but the updates going down to 1 to 0 updates when I am at the office the whole day or home at night.

This is optimal in terms of power as far as I can see.
[Android Apps and Games] superbobup:
States "ALTitude free"
[Android Apps and Games] chamonix:
I assume you have already rebooted right? What Android Version are you running? could you please provide a logcat after starting/opening ALTitude.
[Android Apps and Games] superbobup:
Yup I tried rebooting but still no go. I'm running the OTA version of Jelly Bean (JRCO03 I think). I'll get on the logcat as soon as I get back

Thanks for the response!
[Android Apps and Games] chamonix:
Ok them, let me get my GNEX out of the backpack, I admit I haven't tested licensing on JB yet
[Android Apps and Games] chamonix:
No problem here on JB.
[Android Apps and Games] superbobup:
Here's the logcat.

I basically cleared the logcat, started ALTitude, waited a few seconds, then got the logcat. Hope that process was ok. If I should do anything else let me know :cyclops:
[Android Apps and Games] Rob2222:
Hmm, OK, from that point of view its perfect.

But when I didn't move the whole day, my friends see my postion update is 8 hours old and think that its outdated cause they think my phone is offline. At least I personally only trust position updates if they are newer than 30 mins cause my friends could have gone offline.

Can you maybe implement a force update checkbox, that it sends position to server, even if it wakes the device for the sending?

I know, it's more battery consuming, but its just a option to switch on/off and maybe someone finds that option suitable for his demands.

Just an idea.

Best Regards

Robert
[Android Apps and Games] chamonix:
I think I found a better way to do that (it's added in 0.11 that is almost finished). The trick here is to offer you the possibility to set an update accuracy "0". This will force the location manager to orient itself to the interval. On the other hand even with an interval 0 it should not update every time you move by 10 meters as the interval is given. The same logic would be to set the interval to 0 and the accuracy to a value, trying to force an update every x meters. I'll do some last testing and will release that with other fixes
[Android Apps and Games] Rob2222:
Hello,

but I assume accuracy "0" then fires up GPS every time, right?

BR

Rob
[Android Apps and Games] chamonix:
I haven't checked what happens when gps is on but leaving it with 0m and 30 minutes overnight does not deliver the right result: the location has refreshed approx every 5 minutes for the last 12 hours. As I already explained before the time component is no guarantee so I will remove 0 again as I think it may lead to more questions. I will add an option for updating the location 'at least every X' and manage this with an alarm. The alarm will be set on start and every location update will of course reset the counter of the alarm as the phone is awake at that time anyway. The technique for actively getting a location will be triggered by the alarm. Now this is a guarantee for requesting the location at a minimum frequency but of course no guarantee to deliver it as

A) there may be no location available

B) it may not be possible to update latitude
[Android Apps and Games] chamonix:
Testing....
[Android Apps and Games] Rob2222:
Very nice. Thanks! :)

I hope I am not the only one how needs/wants this, so that you don't had the work just cause of me.

Best Regards

Robert
[Android Apps and Games] chamonix:
The QoS updater is running stable since this morning. Version will roll out tomorrow
[Android Apps and Games] chamonix:
Release 0.11

The release 0.11 is rolling out on Google play. For the changelog see post #2

There were two known issues you guys had reported that I could not reproduce but I have added more logging for that:

- Notifications showing despite the fact that they were diabled

- Licensing of full version was not recognised in a JB device (I have tested JB positively)

If those persist please post a logcat so I can check if the added logging data gives me more valuable info
[Android Apps and Games] superbobup:
@chamonix

The latest version does not seem to fix my issue, it still does not recognize that my license is installed :(

I've attached a logcat, and it keeps showing this error

I/Configuration(22866): no license was detected: -2

It may just be a really weird issue...If you don't know what to do to remedy the situation, I'm sure I'll do a full wipe soon, so I'll let you know if the issue persists after a clean flash :highfive:

BTW, do you know any way to reduce the overhead from the cellular/wifi location services? I'm trying to use Google Now/the new Voice Search often, but it requires enabling Location Services which tend to wake the phone up quite often even if I don't change location.

Thanks again for the help :cyclops: (I know, these smilies are so random but I'm still getting used to them/having fun :laugh:)
[Android Apps and Games] chamonix:
Thanks for the feedback. I will check on the error -2 as it may give us more info about the reason why the license was not found. I am at work right now but will get back to you when I am at my dev PC.

About the location with google now: I have it on my ICS and jd phones and also noticed the overhead. I also found out that now seems to use latitude as I got a notification telling me that it couldn't be used because my location was set to manual (as I use altitude). I am interested in finding out what cards use latitude an if the location history is also accessed (eg to find out how often you travel certain legs). Tbh time is what I am missing for that right now :-)
[Android Apps and Games] superbobup:
No problem, and thanks! Any time is OK. I'll try and get around to doing a full wipe to see if it helps.

Also, for Google Now, I'm not sure if it will help but here is some information regarding what cards seem to use what data (at the bottom of the page): http://www.google.com/landing/now/.

FWIW, I've read that setting your "home" and "work" locations in Latitude helps for the Trafic card to pop up, so it may be related to that card specifically. But, I'm able to get the Traffic card working without using location history, and setting my location to manual.

Hope it helps! :cowboy:
[Android Apps and Games] chamonix:
Ok I checked the code and -2 means that the license class could not be found. Possible causes are:

- the package is not installed: now I guess we can forget that one

- the package is there but for whatever reason ALTitude has no permissions to access it (normally this is impossible too as both ALTitude and the license are in the same package (read namespace)

Cleaning the dalvik cache and fixing the permissions is what comes to my mind right now
[Android Apps and Games] superbobup:
Tried it out but it doesn't seem to work :( I've attached another logcat but it keeps throwing the same line "I/Configuration( 8688): no license was detected: -2"

I'll try to get around to a wipe tonight and report back if I can. Thanks again for all the help :highfive:
[Android Apps and Games] Cusa:
Awesome, thank you!
[Android Apps and Games] superbobup:
@chamonix

I tried the ALTitude free + license on my LG-P500 (Optimus T) and it works fine. I'm going to try wiping and reflashing the stock 4.1.1 OTA now and see if it works :fingers-crossed:
[Android Apps and Games] superbobup:
Just tried a full wipe + flashing Bigxie 4.1.1 OTA and it doesn't work. I didn't do any mods (no navbar, battery, stock kernel), just downloaded the free app, then logged in, downloaded the license, then rebooted but it still shows "ALTitude Free" and throws the same -2 error. I've attached another logcat in case it is useful. Any other ideas? Thanks for helping out so far :)

BTW, I can see why you like debugging this stuff so much...it's like a treasure hunt :good:
[Android Apps and Games] chamonix:
Ok now I'm starting to worry about me missing something important here. I have check the feedback on google play to see if there is a mass problem but nothing. This is no guarantee considering that the last comment is from june.

There is only one difference (discarding the JB ROM for now) between your phone and mine: my installation comes from my dev PC and not from the market. I don't see any difference but again, I don't see any reason for the license check to fail either. So here's the deal: I will PM you the signed APK if you give me your word (yes, I am old-school ;) )that you will use it only for the purpose of testing and will not re-distribute it. If we are till stuck after that I would like you to give me the details about the ROM you have installed so that I can flash the same and go on with further tests
[Android Apps and Games] superbobup:
You're truly an amazing dev, chamonix. I give you my word i wouldn't ever distribute it. It'll stay safe on my phone :D

Hopefully it works and we can narrow this issue down...if it doesn't, well, I guess that just means more hunting to do!

I'll also keep trying the market version. I'm currently on the stock OTA ROM and if I switch over to something else, I'll make sure to see if the market version works.

Thank you a million times over and I'm sure we'll find the fix to this eventually :highfive:
[Android Apps and Games] 93ae8074:
Just to add some more noise, I'm having the same problem, ALTitude doesn't recognize my license file. I'm in JB 4.1.1, no deodexed and rooted.

I'll be watching this thread and if you need some help to debug the issue don't hesitate to contact me.

Cheers.
[Android Apps and Games] chamonix:
OK, we have been some tests offline and the problem occurs definitely with the app from Google play. The same code, signed with the same key and installed directly to the device doesn't have the problem. I will be debugging that this evening and will hopefully deploy a new package tonight.
[Android Apps and Games] cdmackay:
feature request, please...

I had occasion to use the location quick settings yesterday, and found a few ease of use issues (although it's possible I'm just not getting it).

- It doesn't seem possible to find out at a glance whether the quick settings are in effect? You can check the Status, but that assumes you can remember what your regular settings are, and also that you can convert your time settings back into seconds, not trivial when it's e.g. 6 hours.

- I don't see how to cancel the quick settings, before the time expires?

Please would you consider something like the following:

- Move the Status readout to the main Altitude banner page, instead of being a menu option. It's vital info :)

- Have the new Status indicate both regular, and quick settings, whether quick settings are enabled, and if so how long is left on the timer before reverting to regular settings.

- Whilst I'm thinking about Status, it might be nice to expand the info given a little, e.g. to add/differentiate between time location last gathered against time last updated in Latitude. A link to view the last updated location in a Map viewer might be nice, as I found myself switching back to Maps to check things, with its confusing layouts...

- An option to manually disable quick settings before the timer expires.

thanks again.
[Android Apps and Games] chamonix:
Those are indeed nice ideas and will take them up as feature requests as soon as I have a keyboard (on the phone it's a pain).

About canceling the quick settings: when a quick setting is running and you open the quick settings dialog again the 'reset' button is enabled. That function terminates the quick settings and resets to default before the time is over.
[Android Apps and Games] chamonix:
Just a quick update to tell you that hotfix 0.11.0.1 is rolling and fixes the not recognized license on jelly beans. I will update the thread and post more details tomorrow

Edit: Posts #1 and #2 updated, thread title and github repo

Many thnaks to superbobup for all the testing related to the issue with the license on JD!
[Android Apps and Games] chamonix:
#62

#63

#64
[Android Apps and Games] sinancetinkaya:
Turkish language has been added.
[Android Apps and Games] moriakaice:
Ok, it might sound like a stupid question, but... How do I change the updates on Google Maps/Latitude to manual updates? I would love to keep the map option (seeing where my friends are) available and I would still be able to report my location (hence using ALTitude).

Can someone tell me what should I do?
[Android Apps and Games] chamonix:
Maps - settings - location reporting - location manually selected
[Android Apps and Games] chamonix:
I have been pretty busy with 3 other projects but once BBS is released I will do another iteration of ALTitude
[Android Apps and Games] moriakaice:
Yeah, that's the problem. I do not know if it's because I'm running Andromadus Mimicry 1.5.0 or anything, but I get 3 options in Location reporting: detect your location, set your location and do not update your location. I assume I am to select the last one, right?

Thanks for the help :)
[Android Apps and Games] chamonix:
set
[Android Apps and Games] moriakaice:
Now that made me confused. With that option it asks me to select my location by either poiting it on map, entering an address, selecting from contacts or using my current location.

So, I should select any of those options and then ALTitude will take care of updating it for me?
[Android Apps and Games] chamonix:
That is correct and the right way to procee. elect the location once by tapping on the map. From that moment Maps / Latitude will not take care of updating anymore but ALTitude will do, that's how it was designed
[Android Apps and Games] Rob2222:
@chamonix:

Is there a way to just stop Altitude?

So like as "uncheck start on boot and reboot".

Is there a way to just shut it down?

BR

Robert
[Android Apps and Games] chamonix:
No there is none but I can add that. Should it be" disable" or "stop updating but keep buffering for later use"?

Edit: https://github.com/asksven/ALTitude/issues/66
[Android Apps and Games] Rob2222:
In my case I installed a custom kernel, 2 apps and Altitude and then I had bad lags and a permanent GPS lock, so I just wanted to disable Altitude without reboot (on a very laggy phone) to see if GPS lock comes from Altitude.

There I missed the stop and end all function. ;)

However offline caching mode sounds like a nice idea, too.

PS: Altitude was not the problem. ;)

BR

Rob
[Android Apps and Games] gf7z:
Would it be possible to add a desktop widget (or shortcut, I guess) to more easily enable the location 'quick' precision change? An indicator of whether altitude is updating normally or 'quick' would be nice too. Thanks!
[Android Apps and Games] ioni2ioni:
Thank you for great app!

One question about Latitude check-ins

After Altitude updates location, is still Latitude able to do an automatic check-in in that location?
[Android Apps and Games] chamonix:
I don't think so as Latitude has to be set to manual location in order to not have the overhead of maps/Latitude and let ALTitude do the job
[Android Apps and Games] chamonix:
https://github.com/asksven/ALTitude/issues/67
[Android Apps and Games] MichunB:
hello

I have to feature request

1 could you figure out some other way to get altitute alive insted of background service to get rid of this anoying "ongoing notification"

2 please add exit option to simply close altitude when I do not want use it, now I have to stop it with app manager

and please keep up your great work

Michal
[Android Apps and Games] chamonix:
Good timing as I am currently planning the next release.

2. Would be covered by feature request #66

I don't understand what you mean with 1: the ongoing notification is caused by altitude running as foreground service (the sdk forces that) but you must not run it in foreground. If background and the settings are so that nothing is notified you should not have a permanent notification. Is your experience different from that?
[Android Apps and Games] MichunB:
I get little confused so let me show my symptoms:

on this image you can see my settings and in the left upper corner permanent notification icon

and now the ongoing notification

so what to do to let altitude work? check the option "run as foreground service" or not? does android kill altitude without it or not?
[Android Apps and Games] chamonix:
The problem with background services is that they may be killed by android. There is no way to tell when and if so you should consider fg service as a workaround.
[Android Apps and Games] wirtzpeitz:
I've been trying to find a documentation of all of Altitude's features. I couldn't find one, so I read through most of the posts here but I'm still unsure about some of the options. I hope someone can help me out.

Passive location -- I get the concept, but does this mean Altitude will rely exclusively on passive locations, or does this mean Altitude will use both passive and active location fixes? (If the former, what happens if there is no passive location available when the next update interval is reached?) Further, will passive locations be used even if they do not meet Altitude's accuracy setting?

Enforce interval -- What does this do? Does it mean Altitude will update Latitude with a stale location if its most recent attempt to obtain a location fix failed?

Accuracy -- I don't understand the concept of this at all. Somewhere it was stated that a more accurate location requires more battery/wake time. Why is this? It seems to me that location accuracy is a property of the method used to obtain it (cell/WiFi/GPS) as well as certain environmental factors, rather than the amount of time or battery expended on obtaining it. E.g., if I am in airplane mode with GPS off, location can only be obtained by matching the available WiFi SSIDs/MACs in my surroundings to locations in Google's database. I can have my phone scan the available WiFi SSIDs for as long as I want -- the accuracy won't improve. It's the same with cell triangulation and GPS. For each of these methods the accuracy of a location fix is limited by environmental factors (like how many GPS satellites can broadcast to my location and the strength of their signal). I don't understand how setting an accuracy value in Altitude can change these limiting factors.

Duration -- What does this mean? Is it the amount of time that passes before Latitude marks me as 'stale'?

--

As for feature requests, I'd love to be able to use Tasker to pass coordinates to Altitude which it will then use to update Latitude. E.g., I have profiles in Tasker for home and work and I know precisely where these locations are. If Altitude just kept updating Latitude with these coordinates while the profiles are active I'd save a lot of battery.

I'd also like Altitude to dynamically change its update interval based on how fast my location changes. E.g., if I'm sitting at my desk my location won't change much from one measurement to the next, suggesting that less frequent updates are appropriate. By contrast, when I'm driving my location changes a lot from one measurement to the next. This may warrant a faster update interval. I read somewhere that Latitude actually does change its update interval based on such considerations, but somehow it still manages to be terribly battery-inefficient.

Thanks for any replies.
[Android Apps and Games] chamonix:
Stay tuned, I just started working on the next release, I will be releasing betas till feature completion on a weekly basis (or more often)