yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Flyview:
1. Yes of course, the countdown is reset when screen comes on (or unlocked depending on option) and only counts while the screen is off (or locked).

2. It shouldn't but I didn't write tasker so I can't guarantee that.

Give it a shot. If it works well for you, maybe you could leave a review saying how you got it to work better than tasker. [emoji5]
[Android Apps and Games] Darke5tShad0w:
Hi, i could do that :p

The only thing your app doesn't do is gps but I understand why.

I tried to buy you app but it comes up with sorry unavaliable.

Here is a log
[Android Apps and Games] Flyview:
I thought that might happen for you based on your previous error. Do you have Google Services installed? It's saying in-app-billing is unavailable on your device.
[Android Apps and Games] Darke5tShad0w:
Yes I do, i am using Banks minimal gapps but it still has the service installed. Ive never had any issue with any other app before.......yet lol
[Android Apps and Games] Flyview:
Can you try any other app that uses in app purchases and see if they work please?
[Android Apps and Games] Darke5tShad0w:
Some do some don't :(

Must of been something recent because i was using that app 2 weeks ago and it never showed this
[Android Apps and Games] paul c:
the curse of the orange bars

Hi Flyview,

I've been using LD consistently since you released the app on my Nexus 4, on both 4.4.2 and more recently 4.4.3, different ROMs and kernels - managing wifi and data, periodic reconnect every 10 minutes, after 1 minute inactivity.

I have set it up to reconnect on screen on, so that by the time I unlock the connection is available. However, I almost always see the network and wifi indicators (on the quick settings panel) start off as orange, then turn white.

4.4.3 brought some improvements, apparently, to data disconnects, so I had not raised this subject before - I was waiting for the expected fixes from Google. But after a week on 4.4.3 I can't see any practical difference between 4.4.3 and 4.4.3 ....

It must be something to do with how the network/wifi wake up, since orange bars means that the phone can't communicate with Google's servers. But in practice there is no internet connection for 3rd party apps either, until the bars turn white.

I have disabled LD to monitor the phone's standard behaviour, and white bars are the norm since there is a permanent network connection - but with LD the delay to the bars turning white can be a few seconds from turning on - not really an issue - or sometimes 30-40, which is more of a problem.

Is this something you have come across/is there a way of avoiding the orange bars delay?
[Android Apps and Games] Flyview:
Time to get proper gapps! I bet the working ones use their own solution for in app purchases, and not Google's.

I wouldn't worry too much about the orange. Have you actually found that apps don't work? I haven't had any problems, even if I'm resuming straight to something like fb messenger it connects within a few seconds.
[Android Apps and Games] paul c:
Yes, I have noticed that some apps don't work with the orange bars, specifically Kaiten Mail (email app) and a scrabble game called Aworded. I notice it most with Aworded, since the first thing it does is look to download the game from its server. Most times the orange bars turns white quickly, but if for whatever reason they don't, I don't have an internet connection.
[Android Apps and Games] Flyview:
It probably comes down to how quickly your network can reconnect you. Does this happen on WiFi too? How often does it happen?

I haven't ever had a delay longer than a few seconds.
[Android Apps and Games] paul c:
Yes, most of the time I'm on wifi, though it does happen also on data too.
[Android Apps and Games] Flyview:
Good news for upcoming version:

I'll be removing the foreground notification for 4.4.0 and 4.4.3 (START_STICKY bug has been fixed in 4.4.3 and affects 4.4.1 and 4.4.2).
[Android Apps and Games] Flyview:
New version just published, expect to see it within a couple of hours:

1.6.4

-Translated into Italian, Spanish, Romanian. Thanks Jessica P., David A.!

-Fixed screen on during sync resetting the disable alarm with reenable on unlock selected

-Persistent notification now only for 4.4.1 and 4.4.2 (reduced memory usage!)

-IAB stability fixes

-Minor code improvements
[Android Apps and Games] Darke5tShad0w:
lol maybe. I restored a stock nandroid, brought it, restored my normal rom reinstalled leandata in the high but unlikely hopes it would work but it didn't :(
[Android Apps and Games] Flyview:
Perhaps you can take it up with whoever made the ROM / gapps package?
[Android Apps and Games] Darke5tShad0w:
Yes I plan to do that this weekend
[Android Apps and Games] dyfk3l:
Great app, indeed. I've been searching for an app like this for a long time.

A great replacement for Sony's Stamina Mode when moving to CM or other AOSPs. I've tried a bunch of battery savers (my purchased DS Battery Saver can't handle mobile data under 4.4.3...) and they're all filled up with useless bling-bling stuff. Not yours.

GREAT! A beer for you is in its way - but I'm afraid it will lose the bavarian taste on the in-app purchasing way.

A widget would be awesome (you've already announced one), then it's 100% perfect. :fingers-crossed:
[Android Apps and Games] Flyview:
Thanks for the kind words and support! The most helpful thing would be to get the word out there about LeanData, tell your (techy) friends!
[Android Apps and Games] poodleDoo:
I just installed and purchased the PRO version... Thanks for such a great app!:good:
[Android Apps and Games] Flyview:
You ran this test when LeanData was in its infancy stages. A lot of logic has changed, and it no longer keeps the phone awake during the "sync"/"briefly re-enable" interval. Can you rerun some wakelock tests?
[Android Apps and Games] venky716:
K will do :good:

Great app, used to do this with tasker but was a lot of hassle, your app is just perfect.
[Android Apps and Games] Torpin:
Hello, I'm switching from another app called "rabbitbattery" that does the same as your app. But rabbit eats too much battery.

However rabbit battery also look at the apps running and let the user create rules for specific apps.

Do you think this is a useful feature to add in your app?
[Android Apps and Games] RobboW:
Nice work, trying it out now. One problem I already had was doing a memory clean. It cleared the app from the list of running apps and lost it's settings. I'm trying moving it to a system app.

Edit:

Yep, that worked, a one key memory clean didn't stop it and it held it's settings this time :)

So best to use on a rooted phone as system app.

Will update my thoughts here once I've used it a while.

If wifi tethering is working, that will be good because I use wifi tether myself. My phone won't USB tether.
[Android Apps and Games] brynte5:
just found out about this app and i´m definately gonna try it out:)

about the quote above...

considering what you´re saying about 2g, i suggest adding a feature to optionally set the time it has to sync, so those with only 2g can use this app, as well!?

i mean, not everyone lives in cities with good 3g/ 4g connections!

i (for example) have ok 3g most of the time, but perfect 2g connection all of the time, so sometimes the 3g connection is lost for me and it switches to 2g!

some people might choose 2g to save battery!

only a suggestion, of course:)
[Android Apps and Games] hp420:
How would an app like this react when used alongside google voice? I use google voice with my tmobile plan on their voice network, rather than voip, but in order to receive or place a call I need a split second data connection just for the call to actually connect and use my google voice caller ID.

So my question is this: is there a way for the app to recognize that I'm receiving a call and automatically allow it to go through so I don't miss it, or will the call be ignored and pushed to my voicemail if this app has disabled my data connectivity? Or will the incoming call still come through?

To explain, I'm suffering severe battery drain at work. I get a perfect LTE signal outside the building, and in specific areas of the building, but as soon as I enter the building, unless I'm standing in one of those areas, I get NOTHING...and I mean nothing, as far as data connectivity. At this point I have to manually turn my phone on airplane mode while I'm at work, and I turn airplane mode off during breaks to check any missed calls, etc. I'm looking for an app that will still allow me to make and receive calls (remember, I need only a few kb to have a call connect via google voice) when there is a signal, but will save my battery, in the process, when there is no signal.
[Android Apps and Games] RobboW:
Can you just turn off LTE in your phone settings and set LeanData to only turn off Bluetooth and WiFi, not 3G? It will still use battery but not like with LTE still on and searching for a signal.
[Android Apps and Games] IlFritz:
Hi all, I've got a problem with BT that turns off also if I've got pebble connected with my phone. Any suggestions? Thanks and great work!
[Android Apps and Games] tex321:
Thanks, Great app.

What do you mean by "Tip: Do not set a very short sync interval time (<10min) as this will cause frequent wake ups and defeats the purpose of this application." It will always turn on the screen or when it finds notifications?

How long does it stay up to sync?
[Android Apps and Games] gsmyth:
Great app and really useful functionality, thanks. You're probably already working in it but a desktop widget would be handy to switch lean data on/off quickly. Thanks again.
[Android Apps and Games] Flyview:
Well it certainly is different, as I've written it from scratch.

I'm looking into it now. So you would want it to turn off GPS after a certain time with the screen off, IF it is not in use, when it checks, correct?

Possibly. I don't want to make the app too complicated. Can you give me an example of how it would work?

What do you mean by memory clean? Swiping the app away from the "recent apps list" will actually kill the service, but it should not clear its settings. The service is supposed to restart automatically when you do this, but there is a bug in KitKat where services do no restart after doing this.

I may add this in, in the future. Again, I'd like the app to be relatively simple/easy to use, without too much user thought. I know xda is an enthusiast community so you likely want the opposite, but too many options like that can confuse your every-day user.

So you basically need something to check if there is cellular network connectivity periodically, and otherwise put you into airplane mode. Correct?

What's the problem?

By wake ups I mean the CPU turns on, the screen will not come on. Right now the app "wakes" the phone, turns on the connections that it turned off, stays like that for 45s and then turns the connections back off.

Sure, I'll put it on my to-do list.
[Android Apps and Games] lesscro:
Damn, so simple but efficient solution...
[Android Apps and Games] RobboW:
I'm running JB 4.1.2, a modded stock ROM. One option is to swipe up to show recent apps in memory and there is the option to wipe it all in one press. It frees up memory really nicely. Of course the OS will release memory when needed but it's good if you can just clear it as no resources are being used anymore. LeanData also was wiped and settings were changed when I started the app again. Simply making it a system app stopped this happening :p
[Android Apps and Games] macia10:
Hi,

I would love the option to turn data connections after screen is off and set time to turn tose off inconditionaly even if there is something using the connection. So screen off wait 1min and cut the connection.

And one thing mentioned before is time to sync when it wakes up the connection for people using 2g on daily basis
[Android Apps and Games] aveulivm:
Awesome utility. Thanks for your hard work.
[Android Apps and Games] paul c:
Nice app Flyview, just installed it and sent a couple of dollars your way :)

I do like how simple the configuration is, and how lightweight the application is.

Despite that comment about simplicity, a suggestion for a feature: I recall in the past with Juice Defender, I could modify how frequently apps were synced. For example, Whatsapp every 10 minutes, Google Calendar every 6 hours, Skype every 24 hours. That sounds more battery efficient than "all apps" polling once they find an active connection, and if I don't use the Android calendar intensively, I don't need it to poll constantly. Combined with the current data connection config of x minutes off, y minutes, sounds like this would reduce battery consumption further.

Am I on the right track, would it be possible with LeanData?

I currently have all options checked, turning off the connection after 1 minute, re-enabling after 10. Running a very stable AOKP ROM and what appears to be the best kernel available for a Nexus 4. Now, if I switch the phone on, it takes about 7 seconds to reconnect wifi (and the signal colour on the quick settings tile starts off with that pesky orange, occasionally) - and I've noticed that the phone signal is (occasionally?) switched on and off after wifi is activated.

- can the data connection reactivation take place faster?

- the phone signal being toggled, would that impact answering a phone call?
[Android Apps and Games] Flyview:
Thank you!

1) There is no need for per-app settings. LeanData doesn't affect sync of the apps, and by no means makes each of them poll for updates. It simply turns on the data connections for a brief time after which the apps can use it, or not use it as they please. I.e. most likely only push notifications will come through, unless the apps syncing are smart enough to listen for an available data connection having been switched on.

2) The data connections turn on as fast as the phone allows, that is not under my control.

3) The phone signal being toggled I have not seen before. You mean your connectivity bars actually go to 0 and then back on? Or is it just the data connectivity?
[Android Apps and Games] paul c:
1 - I see, thanks - makes sense.

2 - checked with a stopwatch, 10 seconds to connection after screen on, OK, I'll live with it!

3 - about 2 seconds after wifi is established, the signal bars go from "full" to "empty triangle", for about a second.

I was watching the tiles on the quick settings, and the full sequence is as follows:

1. turn screen on, pull down quick settings to watch the status on wifi/network.

2. first just the phone signal is orange, then the wifi indicator comes on, orange.

3. then after about 10 seconds... wifi signal goes white, and then the phone signal displays "no service" for a second.

4. the empty triangle is then filled back up with the signal bars, and the network operator is displayed

I rang my mobile to see how it behaved: one call went straight into voicemail, that may or may not be related. 2 others got the phone ringing, and the connection was not dropped in either of them :good:

Do you know of any logging app to check exactly what is happening with the phone signal?
[Android Apps and Games] venky716:
Great app.

But the disabling and enabling of Wifi causes way more wakelocks and thus more battery drain than keeping it on the whole time. I'll be doing further testing.

Here's a BBS screenshot.

First two are with the app and the other without the app. More standby and less wakelocks on the 3rd one.

I HAD SET 30 MIN INTERVALS AND ONLY WIFI was getting toggled.
[Android Apps and Games] Flyview:
Thanks for investigating. You'd have to see what shows up in your logcat. You can watch this through adb, or download the app "CatLog" from the market, it's pretty good.

What do you have checked off in LeanData? Just WiFi or data as well? The only time I've seen the network bars disappear like that is when switching connections from 2G/3G. Do you have another app that does this? If you have also checked off network data in LeanData, try the same test but un-check Network data.

I want you to try something. If you just toggle WiFi yourself, does the same thing happen to the network bars?
[Android Apps and Games] Flyview:
Interesting. Well the reason is probably because I actually hold a wakelock during "sync" (45s each time). Seeing as your charts are from about 5hours of use, that makes sense (even with a sync only every 30min). I think I will remove this as it's probably not necessary. The other apps can handle holding their own wakelocks if they need it to sync, once the connections are on. This wakelock I hold however, I think, would only affect LeanData's wakelock stats though. The Connectivity wakelock may remain the same just from the toggling, if it's that slow.

Keep in mind the point of the app isn't solely to reduce wake-ups, but also to reduce data usage by apps (which is heavy on power). So net battery saving is affected by what apps you have that would otherwise use an available data connection.
[Android Apps and Games] halifage:
Can I use it together with stamina?
[Android Apps and Games] Flyview:
For people that have upgraded to 4.4.3 / 4.4.4 is everything still working alright now that there's no notification?

Also, a friendly reminder to please leave a review :)
[Android Apps and Games] spanish33:
Still working as expected on Android 4.4.4
[Android Apps and Games] kirtandoshi:
On Amazon Appstore?

Flyview,

Is there any chance you could publish your app on the amazon appstore too? I have a few amazon coins in my account there and don't want to waste it on apps that are of no use to me.

If I could buy the pro version from there, it would be coins well spent. :D

thanks for the app! works great.
[Android Apps and Games] paul c:
Working fine on my Nexus 4, AICP 4.4.4 ROM with the latest radio :) thanks Flyview

(the signal bars take about 4-5 seconds to turn white after screen-on, just once over the last day did it take about 30 seconds)
[Android Apps and Games] occtec:
All good here [MENTION=2584205]Flyview[/MENTION] stock 4.4.4 ROM using 4.4.1 radio no drama, works as expected!! Thanks :)
[Android Apps and Games] Flyview:
For all those still on the fence about purchasing the premium version, I have reduced the price to $1.49CAD for a limited time. Cheers.
[Android Apps and Games] Bwangster12:
Haha... BOO! I just bought like 2 weeks ago after much debate.
[Android Apps and Games] Flyview:
But you've had the best data management for the past two weeks! :)
[Android Apps and Games] kirtandoshi:
Just bought it now! Thanks for the gesture flyview. :good::)
[Android Apps and Games] Flyview:
Sorry man, that would be quite a bit of work, and with a full time job, it's hard even keeping up with progress on these apps! Priority right now is putting out a widget.

Thanks for the support! Let's get it to 10k downloads, it's at ~8700 right now.
[Android Apps and Games] Flyview:
New version is published should be available soon:

1.7.0:

-Translated into German. Thanks Nicolas Woelker!

-New premium option: set sync duration time

-Add option to rate app

-Updated translations

-Layout changes

I'll get to the widget soon I promise!
[Android Apps and Games] occtec:
Love the new layout changes, great work [MENTION=2584205]Flyview[/MENTION] [emoji106]

EDIT: Sync duration time also a great idea!!
[Android Apps and Games] biert87:
Just bought the pro version, good piece of software mate! :)
[Android Apps and Games] Flyview:
Thanks for the kind words and support!

I've had a bright suggestion to add an option that delays re-enabling of data so that WiFi gets a chance to connect first. Otherwise, battery is used connecting to data for a second or two, before being put out of use anyway due to WiFi being connected. What do you guys think?
[Android Apps and Games] mrrocketdog:
sounds like a good idea. (always will buy 'pro/donate' version) you devs make my phone rock more and more. thanks for sharing your time and talent. :)

err on the side of kindness
[Android Apps and Games] odavans:
Good idea
[Android Apps and Games] RobboW:
Sounds sensible.

These sort of changes and options will just make the app work better, they're not there just as extra options of no real use to make it seem like better value.

Must be getting close to the right final list of options now.
[Android Apps and Games] paul c:
Sounds like a great idea! I was actually thinking of the same thing, more to increase the connection speed. :)

Could it be done via a toggle/widget so that if you leave your Wi-Fi zone, you can get the phone to poll data?
[Android Apps and Games] Flyview:
Hey Paul, I'm not sure what you're asking. The new option will not increase the connection speed. If you left WiFi on, and went out of your WiFi's zone, it would actually slow the connection, since LeanData would try to connect to a WiFi first (for 8 seconds), before giving up and enabling data (total time about 10s on my phone).
[Android Apps and Games] poodleDoo:
SMS issue?

It seems to cause a weird behavior with SMS.

I see it to sleep after 5 minutes after screen off, and wake every 30 minutes for data updates.

Random SMS messages are delivered literally hours after sent...

Even if I uncheck mobile data... I bought the pro version but uninstalled due to the above
[Android Apps and Games] Flyview:
Does your provider use data for SMS? Can you receive/send texts with your data manually turned off? The app doesn't affect regular voice connectivity whatsoever, but if you would like to receive a refund please send me your order number.

Sent from my Nexus 5
[Android Apps and Games] poodleDoo:
Not sure what you mean... I have Sprint.

I tested with and without disabling mobile data.

Again, this is a random occurrence.

I just reinstalled Leandata and will see what happens
[Android Apps and Games] Flyview:
I just edited my original post, please take a look. To test, you can try disabling LeanData and then disable data manually for a while to see if the same thing happens as when you're using LeanData.

Sent from my Nexus 5
[Android Apps and Games] bluesky747:
Awesome app!

Increased my S4's battery life to almost double! Keep up the good work!!
[Android Apps and Games] cschmitt:
Could it be a group text, some are sent as MMS and would require data to download the content. Should still receive the message header as an SMS even with data off.
[Android Apps and Games] Darke5tShad0w:
Me again lol. Just thought I would give you an update.

I was just about 5 minutes away from reflashing a new gapps when I thought I would go in and see if all the required services were still "attached" to google services and google play. While I do a bit of tweaking I have never touched these 2 and I found both iab and marketbilling services were unticked :s. Reticked them and voila it worked I reactivated it from when I brought it on original rom.

Still a mystery but thanks for all your help :)