yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Flyview:
For whoever's on the Beta, I'm particularly interested if the new "Switch network to xx" is working on KitKat, and if it's working with CDMA phones.
[Android Apps and Games] Flyview:
Good news, looks like switching network modes is working on some KitKat roms! Beta is pretty close to done, I just have to get translations.
[Android Apps and Games] deathbytalkshow:
I'm still trying to figure out a good combination of interval time & active limit Kb/s. But the songs from Spotify vary from as low as 3 minute to 6 minutes, some even go over 8 minutes. About 3 songs will come through with the screen off, I have that set to 6 minutes and the "except if active" checked at 11kb/s, 15, 18, 24, and still stops playing because LD doesn't see any traffic activity. I wish there was a way LD would see that Spotify is running so it doesn't stop playing. Should I stay below 10kb/s?

The only alternative I have is set my screen to not turn off but that defeats the purpose of the app.
[Android Apps and Games] Flyview:
You're right. I'll be putting in that option in the update after next.
[Android Apps and Games] mwrobe1:
Whoa, as in an option like, if app X,Y,Z, etc. are running (or maybe more specifically when app X, Y, Z, etc. are playing audio)...than don't disable data when screen is off? Good luck...and thanks for your ongoing work.
[Android Apps and Games] Flyview:
Yes. It will probably just be if X app is running, as that would make it useful for scenarios other than just "streaming" audio. This has been a long requested feature, and it's about time.
[Android Apps and Games] mva1985:
I use 3k as my setting for iheartradio and never have a problem
[Android Apps and Games] paul c:
Radio apps tend to stream constantly, but music apps will often download a song to cache, then not do anything (data transfer-wise) until it's time to prepare for the next song.
[Android Apps and Games] Flyview:
Anyone here use a CDMA phone that is able to get a logcat? I.E. Verizon, Sprint, and U.S. Cellular? I need some signal strength testing on CDMA phones...
[Android Apps and Games] Flyview:
If you haven't heard, Android 5.1 is rolling out. Among the changes:

Hopefully this means LD will be able to provide control over the second SIM card (which until now it's been up in the air, as each manufacturer codes multiple SIM support independently, without a common API). In any case, Google has restricted basic API like disabling data even for the single SIM in Lollipop, so even if possible it would still require root.

UPDATE: I just installed 5.1 on my Nexus 5 and a few things in LD are BROKEN! Re-enabling data doesn't work, switching network mode no longer works... Will keep you updated.
[Android Apps and Games] JerryGNYC:
Hi. What do you need? I may be able to squeeze some data from my SPH-L720T... :silly:
[Android Apps and Games] nicpon83:
this app realy works? i remeber many apps called "2xbattery booster" etc
[Android Apps and Games] Flyview:
I need to test whether the new (still in testing) "Switch network mode" function is working as intended with CDMA/EvDo. Please email me at teqtic@gmail.com.

Try it out and let me know! I'd like to think so :)
[Android Apps and Games] Darke5tShad0w:
Yes indeed it does for me, doubled my battery life.
[Android Apps and Games] tmacher:
Why You(the dev) have removed the 2g/3g switch in current version?
[Android Apps and Games] fatspirit:
Probably because it isn't enough tested.
[Android Apps and Games] Flyview:
That was never part of the official release, it was in beta. It still needs some work and translations. For example I noticed on Android 5.1 the Nexus 5 is no longer able to use the WCDMA preferred 3G mode and I don't know why.

Sent from my Nexus 5
[Android Apps and Games] Technical:
Seems the pro version is not available anymore...

So, why can't the developer release all the features for free?
[Android Apps and Games] Flyview:
What do you mean it's not available anymore?
[Android Apps and Games] Technical:
Believe or not, can't find it at Google Play.
[Android Apps and Games] Flyview:
LeanDroid only has one listing, there's no separate listings for free and premium. To unlock the premium all you need to do is install the free, and unlock all features with the in-app-purchase. Are you not able to find LeanDroid at all in the market?
[Android Apps and Games] Technical:
Sorry, my fault, forgot the in-app purchase. I've thought I'll have a separate app in Google Play.
[Android Apps and Games] muniz_ri:
Just purchased this app after updating to Android 5.0 and previously running JuiceDefender for years. Love the simplicity of LeanDroid and would love to have a setting keeping wifi always on at home based on location.
[Android Apps and Games] Flyview:
Thanks for the support! It will be coming.

Sent from my Nexus 5
[Android Apps and Games] Technical:
I've joined the beta test. Followed the instructions and got admitted. The update should come via Google Play update. But I see no difference with the stable version (since a week) and there is no an "About" dialog. Am I using the beta version?
[Android Apps and Games] Flyview:
Check the version name in Android Settings -> Apps -> LD. Chances are if you are not on Lollipop you won't see the new option to switch network mode, as it's automatically hidden if it's detected that the method isn't available.
[Android Apps and Games] ratbags:
Doesn't need to be based on location as such, just whitelist selected ssids to keep active on screen off.
[Android Apps and Games] muniz_ri:
That is how it's kept on in other battery apps but location usually turns it on automatically. I'm sure flyview has a handle on it.
[Android Apps and Games] Flyview:
Yup, that's the plan.

I find location unnecessary, it would use more battery. Also, as a general design principle, LD doesn't affect connections once the screen is turned on/unlocked. It restores connections to what you had last enabled/disabled manually.
[Android Apps and Games] camtronius:
Cool App!

This looks great ill check it out!
[Android Apps and Games] Technical:
I'm on version 2.8.1. No more info... For sure I'm in Lollipop (5.0.2).
[Android Apps and Games] Flyview:
Yea the beta would say 2.9.0-Beta7. Send me an email I'll just send it to you. teqtic@gmail.com.
[Android Apps and Games] Technical:
Email sent. Thanks.
[Android Apps and Games] deathbytalkshow:
Sometimes when I unlock my phone, Wi-Fi and data won't restore. I wait to see the toast notification to show up that LeanDroid has been granted superuser permissions but it won't show, not until I turn on the app myself. This is when I have it set to restore when I unlock the phone. It seems to successfully restore Wi-Fi and data when I have it set to restore after screen on.

I'm using CM12 Android 5.0.2, LG G2 D801, LeanDroid 2.8.1
[Android Apps and Games] Flyview:
And as soon as you open the app connections are restored? How often does this happen? It sounds to me like LD was either temporarily killed (normal) or permanently killed (not normal, task killer?) If it's just temporary, then in 5-10s the service would restart itself and restore connections.

It would help if you turned the notification on as that allows the service to run in foreground and it's less likely to be killed by the system. It won't stop task killers though.

Sent from my Nexus 5
[Android Apps and Games] deathbytalkshow:
I think I figured it out. I have Smart Booster Pro installed it's the only app I have that clears apps from running in the background. I added LD to its whitelist, I hope that fixes this issue. That's for replying. :)
[Android Apps and Games] Flyview:
Yup that'll do it. Let us know if the issue was resolved by that. BTW I don't recommend any task killer apps. True, there's a lot of bad apps out there that run in the background, but usually they find a way to restart themselves anyway (ahem FB).
[Android Apps and Games] Flyview:
New update:

LD 2.9.0

-Added Material design for pre-Lollipop Android versions!

-Added Switch network mode (4G/3G/2G) option (requires ROOT and Android Lollipop)!

Sorry guys, I'll be adding the except if WiFi is XX and except if App xx running in the next version. I've been extremely busy. Translations are also lagging behind....
[Android Apps and Games] deathbytalkshow:
Hey [MENTION=2584205]Flyview[/MENTION] it did resolve the issue, but it only happens once in a while. But I think that's because CM12 is a nightly built ROM so it's still buggy. When CM is not acting up, LD works very well. I think it's CM's respond time with apps to start again when it wakes back up is glitchy, for lack of a better word.

Looking forward to the updates! :) Thanks for all the work you've been putting into this awesome app :good:
[Android Apps and Games] Flyview:
Special day today :) Finally!
[Android Apps and Games] fatspirit:
100k? Gongratulations (:
[Android Apps and Games] gaspariperez:
Is the Switch Network feature going to be available for kitkat? Also, an option to switch Sync off while screen is OFF would be awesome! Cheers
[Android Apps and Games] paul c:
100,000 downloads! Fantastic, congratulations on making a great idea so easy to use.
[Android Apps and Games] DrDanielJackson:
Nice. Been hoping for something like this.
[Android Apps and Games] macia10:
Hi,

You know that there is an option to disable that in the new version right? It works perfect.
[Android Apps and Games] RobboW:
My apologies to the Dev Flyview, and yes, you are right in what you say jayinc11. I have now found that my ISP is having an "episode" . Once things are restored to normal I will install the latest update and give this another go. Hopefully it will work ok.
[Android Apps and Games] paul c:
That is what I described in an earlier post - "wifi turning on". For me at least, it doesn't happen all the time, though it does seem to happen more often if I have left the wifi network, LeanData has periodically reconnected on mobile data, then I return back to wifi coverage.
[Android Apps and Games] Flyview:
You also messed around and installed it as a system app didn't you?
[Android Apps and Games] RobboW:
I wouldn't really call that messing around. It's a basic operation and works fine, although I had it running as install intended as user app with 1.2 before uninstalling. I did that because of the regular updates. Easier to update than keep changing to system app and you had improved it. It got more stable with my phone.

Hours later and my ISP is still having issues. It has been amusing seeing my kids at a loss of what to do with no net though, lol :)
[Android Apps and Games] Flyview:
Cool. Anyway an app like this can't really break anything after an uninstall.
[Android Apps and Games] WhiteEVO:
Havent gotten the logcat yet, but tried a few other streaming music apps and they all did the same, pandora was the only only though that would finish a song, the rest stopped after the set shutoff for data. Hope this helps.
[Android Apps and Games] Flyview:
Yea try and get a quick screenshot of the logcat (easy with CatLog app from market, search for LeanData within it). It should show it checking for data transfer and how much it saw before turning off data. It works when I stream TuneIn perfectly well for me.
[Android Apps and Games] cschmitt:
Pandora doesn't stream data continuously, it downloads the entire track that is currently playing then goes idle until just before the next track plays and downloads that track, repeat.
[Android Apps and Games] Flyview:
That's what I figured, but he said he had problems with other streaming apps as well.

Right now the way LeanData works is it will wake up after the time with the screen off has been reached, and checks the data transfer over the next 10 seconds. If it averages out to greater than 1kB/s, it won't disable WiFi/Data.

I was thinking of maybe checking the amount transferred from screen off until the alarm for the time with the screen off has been reached, thereby giving a longer term idea of data usage. However, this presents some new problems.
[Android Apps and Games] WhiteEVO:
The other app was slacker and milk
[Android Apps and Games] Terrez:
Hi, thanks for this application.

I have a problem, I "KitKat 4.4.2" and spends the day when the application closes automatically, even when in the background and with the latest update.

I think not left lingering in the background and closes when memory is needed.

regards
[Android Apps and Games] Flyview:
Are you hiding the notification? Yea I need to look into this ASAP. I think I just saw it happen for the first time on my other app. How much RAM does the device you are using have?
[Android Apps and Games] Jimi Mack:
Since the update earlier today this will not function at all. Over the last few days with all the updates you were doing it would work. I would turn the screen on and see it reconnect but since the update this morning, it stays connected and never disconnects from either 4g or WiFi.
[Android Apps and Games] Terrez:
I have a Galaxy S4 (GT-9505) with 2GB of RAM, use enough games to play and I realized this afternoon. I play games like (Shadowgun, Triger Dead 1 and 2, etc..), You can imagine how heavy are about ram.

Sure, I have activated the notification because I thought that was the problem, but the problem persists in both cases.

Sorry for my english

EDIT: I just upgraded to version 1.2.2 (1.2.1 had before).

Tomorrow commented that this has gone.
[Android Apps and Games] Flyview:
It shouldn't be related to the update. Can you check something for me? Go into Running Services, find LeanData and tell me if you see it there, and then if you see "1 process and 1 service".

If you do see that, please send/paste a screenshot of logcat filtered for LeanData.

Thanks.
[Android Apps and Games] Flyview:
I see. What Android version are you on? Can you check what I told the gentlemen above as well ^ ? I think the problem is the service is getting killed and it cannot restart itself.
[Android Apps and Games] cschmitt:
Just thinking out loud, but attempting to determine device usage by measuring data activity is problematic for several reasons:

It's no indication of human activity. For example, what if my exchange client decides to sync during the 10 seconds in which the sample occurs? The app will interpret that as activity and leave data connected, even if I haven't touched the phone in hours.

Also, I think 10 seconds is too small of a sampling window.

To get an accurate picture you'll probably be better off taking multiple samples over several minutes and looking for a usage trend. It's this trend of usage that will give you the best indication of an idle device. If data usage is generally decreasing over following screen off, then the device is probably idle, but if data usage generally continues while the screen is off then the device may be doing some file download or streaming which shouldn't be interrupted.

To get an accurate picture you might want to look at several things:

1. Screen off -- Obviously you're already doing this part.

2. After screen off, start sampling data for 10 ~ 15 seconds every 1 minute and checking some threshold while keeping track of which samples exceed the threshold. Over 15 minutes you might get something like: 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0 where 5 samples exceeded and 10 didn't, so that's an indication of decreasing usage. Might also entertain the idea of applying more weight to recent samples, as a recent 'non-usage' is probably a better indicator of an idle device then a prior 'non-usage' sample. In this case the 'after 15 minutes' isn't when you check for data activity, rather it becomes the soonest that the application would make a decision to turn off data based on the previous samples.

3. Might also try looking at running applications or deep sleep time trend to determine if the device is active even though the screen is off.
[Android Apps and Games] RobboW:
Yeah, an app like facebork will keep it live all the time the way it is now. I have net/wifi back now and installed update LD 1.2.2 , see how it goes.
[Android Apps and Games] Flyview:
It's available dynamically, if the ROM has the required method. I know one person who says it works on their KitKat build. It won't on most though (and hence hides itself).

As for sync, I never really saw the need for this, unless you leave one of the internet providers on (WiFi/data), but then most of the battery saving provided by LD are gone. There's very few apps that use the "sync" option. In Android 5 I don't even have that option. Are you referring to background data option?
[Android Apps and Games] gaspariperez:
Yes I mean background data
[Android Apps and Games] observingi:
Trying out the latest version, Wifi and Data are not getting switched off after the screen is off. I have set time interval of 1 minute after screen off.

I am on CM12.1 unofficial Moto G 2014

Looks like it's unable to turn Data Off.

Thanks
[Android Apps and Games] Flyview:
I will look into adding this as it could be beneficial if you are leaving either WiFi/data on for whatever reason.

It's not clear from your question, is it just data that's not toggling or also WiFi?
[Android Apps and Games] gaspariperez:
Yes I hope you get what I mean, the background data syncing with my Google account. Thx
[Android Apps and Games] legendaryDev:
nice
[Android Apps and Games] observingi:
Well, it's Mobile Data which is not turning off.

Edit: Problem resolved, CM 12.1 built in root was breaking the function. Disabled it and updated to Chainfire SU. Lean droid is fully functional now.
[Android Apps and Games] GreekDragon:
Greek Translator here...this app is absolute battery saver...in 7 devices all of them increased dramatically battery life.
[Android Apps and Games] sethnet:
Samsung N7100, root and Android 5.1 (CM12.1), but the Switch Network Mode option is missing in my phone with LeanDroid 2.90. :(
[Android Apps and Games] Flyview:
If the option is missing that means the ROM doesn't have the expected method that I access to switch network mode. Unfortunately I can't support custom ROMs, it's hard enough keeping track of hidden methods in stock Android throughout the different versions!
[Android Apps and Games] Flyview:
Are a lot of you seeing cut off text on the bottom in the buttons?
[Android Apps and Games] deathbytalkshow:
No cut offs here, chief. I have my lcd density changed from 480 to 380, but in neither does any text cut off.

Regular and immersive mode, CM12.
[Android Apps and Games] Flyview:
Thanks for the lovely screenshots! It seems to happen on <Lollipop, I should have specified.
[Android Apps and Games] kurtextrem:
Somehow data is not getting turned on again after turning on the screen. CM12s Oneplus One (lolipop). Anyone else?
[Android Apps and Games] Flyview:
Shoot me an email at teqtic@gmail.com so I can send you a debugging version. Is this consistent?
[Android Apps and Games] Nyxerosoir:
After updating to 5.0 Lollipop on my AT&T Galaxy S5 I noticed that leandroid has no effect and doesn't do what it is supposed to. To make shore; I set the timer to one minute. Then, tested to see if everything would turn off like I wanted. It didn't. Tried uninstalling and reinstalling, but to no prevail.
[Android Apps and Games] Flyview:
Hey, thanks for chiming in here! What wasn't turning off? Data? Did you notice that data toggling now requires root on Android Lollipop? Unfortunately this is due to changes by Google. Any third party app that wants to toggle data presently needs root.
[Android Apps and Games] Nyxerosoir:
I am rooted. Nothing was turning off at all. I'm no the only one to report this issue in the AT&T section.
[Android Apps and Games] Flyview:
Do you use apps like Greenify? Did you add LD as an exception in these apps?
[Android Apps and Games] Nyxerosoir:
Nope. Leandroid is my first goto app for battery.
[Android Apps and Games] Flyview:
Alright, let's go through this step by step. Please post a couple of screenshots of your settings in LD, and let me know the steps of how you are testing.
[Android Apps and Games] Nyxerosoir:
Alright I'll redownload and take screens as I go. Will post here shortly. Hell. Want me to record?
[Android Apps and Games] Flyview:
Haha not really necessary but if it's easy for you, sure!
[Android Apps and Games] Nyxerosoir:
https://plus.google.com/104788472510070606018/posts/6eYSrjQ4eoM

Evidence :P
[Android Apps and Games] Flyview:
Haha thanks for the review and the video! I know you set it to a minute, and you waited a minute, but the alarms may not fire accurately (to consolidate wakeups). Could you try setting the time to 0min (sets it to 5s in reality) and wait 30s?
[Android Apps and Games] Nyxerosoir:
Omg it worked with it being on 5s! Going to put it to my normal 5 and see how it goes while I'm sleeping. Thank you hoping I was just impatient and incompetent and not a bug of some sort. This application is my goto when it comes to battery. Also, some folks over in the AT&T section will be glad to hear :D
[Android Apps and Games] kurtextrem:
Thanks for the quick reply, but it was my own fault (or rather the networks). It had problems. Sorry for bothering.
[Android Apps and Games] Nyxerosoir:
Didn't work overnight sadly, mate.
[Android Apps and Games] Flyview:
How did you test? How do you know if it turned off connections? Have you restricted wake locks with any app/ROM setting?

Sent from my Nexus 5
[Android Apps and Games] Nyxerosoir:
I knew because its set to turn back ON only when I unlock the screen. I let it sit all night. And no.
[Android Apps and Games] Flyview:
It also re - enables periodically, it's possible you caught it during one of those times. Check your battery graph, is the WiFi graph segmented? Was it connected to WiFi overnight?

Sent from my Nexus 5
[Android Apps and Games] Nyxerosoir:
This was when I took a nap earlier
[Android Apps and Games] Flyview:
I can't tell when WiFi was on or off from that. Can you click the chart?
[Android Apps and Games] Nyxerosoir:
Oops here you go
[Android Apps and Games] Flyview:
It looks to me like it's working according to that. WiFi was turned off shortly after the screen went off, came on briefly in between (periodic re-enable) then came back on when you turned the screen back on.
[Android Apps and Games] Nyxerosoir:
Well there is a bug somewhere because according to me settings. It is not set to periodically restore, and it should only restore when the phone is unlocked. Strange.
[Android Apps and Games] Flyview:
In your video you did have "Periodically re-enable after screen off" checked, have you since unchecked it? In any case, the initial problem was that you thought it wasn't disabling anything, and it looks like it is.
[Android Apps and Games] Nyxerosoir:
Since this screenshot I haven't changed a thing. That was before I went to bed and tested it over night.
[Android Apps and Games] Flyview:
Hmm ok. Post another screenshot of the battery graph after tonight when you let it sit for a while. Thanks!
[Android Apps and Games] fatspirit:
[MENTION=2584205]Flyview[/MENTION], new market version just keep on crashing. Service probably works, but UI is always crashing.
[Android Apps and Games] Flyview:
Any chance you can get me a logcat? You can do so easily with the app CatLog from the market. Just install the attached debugging apk, reproduce the crash then enter CatLog and search for "LeanData" (not LeanDroid).

Nevermind. I found the problem.
[Android Apps and Games] Flyview:
Here's the new apk for those who don't want to wait the 1-2 hours for it to come through the market. Really sorry about this folks!
[Android Apps and Games] tenghc:
Hi [MENTION=2584205]Flyview[/MENTION],

I have 2 humble request..

1. Can you configure the network mode changer not to change when wifi is connected?

For example, when I'm connected to my home wifi, I wish that the network mode stays at 2G.

2. Home network mode

For example, when I'm connected to my home wifi ( specific SSID ), the wifi won't turn off unless disconnected.

Sorry if this bothers you, but this 2 feature is essential for my daily use. Thanks!