yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] chamonix:
I have added feature request #69 for you. I am now focused on releasing the first version to gplay but as I have implemented locale plug in a few other apps I have good snippets and will definitely consider that feature for the next iteration
[Android Apps and Games] pwvandeursen:
Cool!!

Waiting for feature #11 and this one which will make it my ideal Wifi tool! :p

thanks!
[Android Apps and Games] StammReim:
Thanks for this great tool.
[Android Apps and Games] TheDrake:
+1

Using llama as locale/tasker/automation app, sometime I need to enable/disable Better Wifi to avoid conflicts.
[Android Apps and Games] chamonix:
It would be nice if you guys could validate the last RC. There were two issues open for re-check:

- cage detection

- duplicates in whitelist (I couldn't reproduce but there was one report that something was wrong)

- respect of airplane mode

If you find inconsistencies please post a logcat.

If no more bugs arise I feel like releasing this version and start on 1.1 with more features. My plan is to start with a frequency of RCs every two weeks in the first month and then switch to my usual one release a month till the list of bugs/feature requests is small enough to slow down a little.

Once released to gplay betterwifionoff will of course stay free with ads and fully featured. Starting with 1.1 I will publish a donate version for those who want to support my work; this version will simply turn off the ads.

If you have ideas for new features please feel free to post them here. I try to answer with the issue numbers but you can always check if your request has been read by lokking at the issues in my github repo. I really appreciate your feedback and suggestions!
[Android Apps and Games] Pkt_Lnt:
I am having no more issues with RC9.

-Cage detection is working fine, no false disconnects.

-No duplicates in the SSID whitelists

-Respect airplane mode is correct now.
[Android Apps and Games] azrash:
Hi chamonix,

The caged bug is occurring in RC9 on my end.

To reproduce this

1. Turn wifi on and ensure it is connected

2. Turn off the screen

3. Quickly turn it back on and unlock the screen and wait for the delay (mine is 30 seconds)

Wifi will be turned off even when it is not caged

I have attached BWO debugging log, screenshot and alogcat here http://db.tt/7LCu79UI

Hope this'll help, I will roll back to RC7 for now
[Android Apps and Games] TheDrake:
Hi Chamonix,

will you include some sort of WiFi signal strengt management in your app?

e.g.:

- Saved AP/SSID connection preferences based on signal strenght

- Turn off WiFi if WiFi signal is too low

I mean, this could be needed inside your app to avoid conflicts with other apps that manage signal strenght too and can't coexist with Better WiFi on/off.

Thanks,

Paolo.
[Android Apps and Games] chamonix:
That would be #39
[Android Apps and Games] twe90kid:
On RC9, looks like the wifi app still takes over when Wifi Tethering is in use. For example, when I screen on and unlock my phone during wifi tethering, the wifi app will take over the wifi and my tethering app would close because of it. ANy fix? Thx
[Android Apps and Games] sbcrumb:
Wish I had the same app to control Bluetooth also.
[Android Apps and Games] pwvandeursen:
I looked for that some while ago as well. apparently it is not possible to cycle bluetooth in the same way. however if it could, wow!!!
[Android Apps and Games] Tungstwenty:
Actually, there's the IBluetooth API that allows enabling and disabling bluetooth programmatically (found it when playing around with the stuff to do with touch gestures).

But what would be a realistic use case? Activate it when there's a "bluetooth AP" in the area? :D

This is probably something more in line with the settings covered by Quick Profiles, although it only handles manual switching.
[Android Apps and Games] chamonix:
How would that use case look like?
[Android Apps and Games] chamonix:
From what I can see from the log the app works as designed:

D/BetterWifiOnOff.WifiConnectedAlarmReceiver(22111): Alarm received: checking connection
D/BetterWifiOnOff.WifiControl(22111): A connection was detected, testing if an IP was assigned
D/BetterWifiOnOff.WifiControl(22111): IP address assigned: 1694542016. Wifi is connected
D/WifiManagerProxy(22111): mActiveLockCount is 0
D/WifiManagerProxy(22111): 0 Wifilocks detected
D/BetterWifiOnOff.WifiControl(22111): Wifilock status: false
D/BetterWifiOnOff.WifiConnectedAlarmReceiver(22111): Connection active: leaving Wifi on
D/BetterWifiOnOff.WifiControl(22111): A connection was detected, testing if an IP was assigned
D/BetterWifiOnOff.WifiControl(22111): IP address assigned: 1694542016. Wifi is connected
D/WifiManagerProxy(22111): mActiveLockCount is 0
D/WifiManagerProxy(22111): 0 Wifilocks detected
D/BetterWifiOnOff.WifiControl(22111): Wifilock status: false
I/BetterWifiOnOff.WifiControl(22111): isWifiCaged: requestRouteToHost returned false
D/BetterWifiOnOff.WifiConnectedAlarmReceiver(22111): Access point is caged: turning Wifi off
I/BetterWifiOnOff.SetWifiStateService(21456): Called with extra false, false

An IP was assigned but requestRouteToHost (it uses google.com) failed so your Wifi was shut off. I did the same test here and Wifi stayed on as no cage was detected.
[Android Apps and Games] chamonix:
I can't reproduce. Can you please send me a logcat?
[Android Apps and Games] chamonix:
Released to gplay

Release 1.0 (no changes from RC9) is rolling out on google play. Note that it may take a few hours to replicate.
[Android Apps and Games] pwvandeursen:
Only case I have is the fact I am in the care multiple time per day, and don't always put the phone in the charger/take it out of my pocket. If we we have cycling bluetooth (at least if that save battery) we don;t have to turn it on when getting in the car. If I can then shut it off when I have wifi on, it would be cool (combined with locale)
[Android Apps and Games] Szczepanik:
Installed from Google Play thanks.

Cheers

Tom
[Android Apps and Games] azrash:
Weird that it happened, I will try the play store version and will provide another logcat should the problem persists.

Congratulations on the release!

update: unfortunately the bug persists. logcat and screenshot attached here http://db.tt/i1aNnhnq

I have tried pinging Google's DNS manually via terminal and it works fine. i will disable the caged detection for now.

thanks!
[Android Apps and Games] patsmike:
Sweet, waiting for the paid version!
[Android Apps and Games] twe90kid:
Having whitelist problem on 1.0 release from market.

I have two wifi networks saved on my phone. One for my home and one for my office. I have the office wifi whitelisted and selected the option to "stay on if current wifi network is whitelisted". If this option is checked, my wifi at home would connect and get disabled within matter of seconds. Basically this would cause issues with connecting on wifi when i'm at home.
[Android Apps and Games] chamonix:
If you ticked 'stay on if whitelisted' you should whitelist your home wifi too
[Android Apps and Games] twe90kid:
But what if I don't want the home wifi to stay on when connected?
[Android Apps and Games] chamonix:
I am not sure that I understand what you mean:

- stay "on when connected" together with the whitelist means that Wifi will stay on as long as the screen is on. Of course for that to work and if you want to use the whitelist functionality the SSIDs you want to stay connected to while screen is on must me whitelisted

Now you have two ways of proceeding (short term):

- you add your home SSID to the whitelist and so Wifi will stay on while screen is on

- you don't want to stay connected to your home Wifi when your screen is on and so you let BetterWifiOnOff disconnect it (and re-enable it on demand)

On the long term if you could describe me what you would like BetterWifiOnOff to do in details I could try to implement that. For now I don't understand the use case so I can only tell you how to get along with the current design
[Android Apps and Games] chamonix:
As in the previous log what I see is:

D/BetterWifiOnOff.WifiControl( 325): IP address assigned: 1694542016. Wifi is connected
D/WifiManagerProxy( 325): mActiveLockCount is 0
D/WifiManagerProxy( 325): 0 Wifilocks detected
D/BetterWifiOnOff.WifiControl( 325): Wifilock status: false
I/BetterWifiOnOff.WifiControl( 325): isWifiCaged: requestRouteToHost returned false
D/BetterWifiOnOff.WifiConnectedAlarmReceiver( 325): Access point is caged: turning Wifi off

So requestRouteToHost fails. Now what I can do is to add another addres than google.com to see if it makes a difference, and check two of them instead of one. I will add that to the next release.

On your end you could try something for me. From the top of the log I see that you use some kind of firewall/blocker/hosts ovewrite as www.google-analytics.com get resolved to 127.0.0.1. I don't know what tool you are using so I have no way to know if this blocking does interfere only with userland and not with sheel (as your ping worked at another point in time). If would be great if you could disable that blocker to see if it makes any difference (I have cage detection on and do not have the behavior you report).

Edit: added the feature for double checking host resolution: https://github.com/asksven/BetterWifiOnOff/issues/70
[Android Apps and Games] ttittoo:
Hey, my phone is not going into deep sleep as much with this app. I really like the idea of it disabling my wifi when screen off, but it is not helping my battery. Sleep time is cut into half with this running, so I had to uninstall it for now until there is a solution. My battery was dropping at a noticeably faster rate.
[Android Apps and Games] chamonix:
What leads you to believe that bwof prevents your phone from sleeping? If there is a relation between bwof and deep sleep on your phone I'd really like to look into it, from my readings (and I use bbs daily) I can not confirm. Please attach a log file from bwof and bbs
[Android Apps and Games] ttittoo:
When I use CPU Spy(resetting it before screen off) I found that bwof is the cause of loss of sleep for me. I don't know if CPU Spy screen shots would help. I don't have a log file for bwof or bbs but I will drain my batter with bwof running and post screen shots for both later on.
[Android Apps and Games] chamonix:
Those show à symptom but not the cause. Please post logs showing a representative period of time (not a minute)
[Android Apps and Games] todivefor:
I have been using BWON for awhile and I like it. I have seen better battery life while using it. I have 2 problems:

I guess I do not understand the "whitelist" function. I have my home network whitelisted. Rules for leaving Wifi on when screen is on | if connected to whitelisted is checked. Rules for leaving Wifi on when screen is off | If connected to whitelisted is checked. Everything works fine when I am home. When I get out of range of my home network, I would expect wifi to turn off. It doesn't, see attached.

I see better battery life if I turn the second check off (turn wifi off when screen off). Unfortunately, the delay it takes to turn wifi on when screen turns on is to great to make it viable. I've set delay to 10s, but it is still too slow.

Can someone shed some light on my 2 problems?
[Android Apps and Games] patsmike:
There shouldn't be any delay to turn wifi on when your screen turns on/when you unlock your phone. It will happen as fast as possible. The 10sec, etc delay if for turning the screen OFF.

If you want it to be as fast as possible, have it turn wifi on with screen on, instead of on unlock

---------- Post added at 01:04 PM ---------- Previous post was at 12:50 PM ----------

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------

Also, chamonix, how difficult would it be to implement the following: A widget button or an "app action" to 'disable all processing' (so that I could use my launcher to make my own shortcut to this action) so that i could easily turn off processing and allow wifi to stay on when I am on a wi-fi network that doesn't give me wakelocks

Basically, there is one wi-fi network that I am on that gives me problems (wakelocks, etc) and I would like wifi to stay on when I am not on this network.

Thanks
[Android Apps and Games] rchtk:
A few fixes for translation to french

All Protocolle should be Protocole

Release Notes ... humm.. Notes de Mise à jour would be too long so "Info Ver." "Info M.A.J." (MAJ: Mise à jour aka Update)

Liste séparée par de virgules => par des virgules

Allumer auf déverouillage auf is au .

Same at recommendé seulement si "Allumer aud déverouillage". And should be recommandé

Allumer Wifi quand le chargeut est connecté . chargeur

Connecté auf chargeur . au . Also s'eteit should be s'eteint

Aktive => Active .

'Evite : the quote

maintient un wakelock quand connectè should be connecté

tant le le should be tant que le (2 times)

heute should be haute

déconnection should be déconnexion

Not that bad actually :)
[Android Apps and Games] Dr.69:
Thank you for a great app.

The app doesn't start on boot, although I ticked the option. If there is some log I can provide, will be glad to it.

I have SGS with jb (hellybean).
[Android Apps and Games] chamonix:
A logcat would be great. Have you relocated to sd?
[Android Apps and Games] chamonix:
Gee, my french has gotten rusty after 12 years in Germany. Thanks! Will fix

Edit: #73
[Android Apps and Games] cgm999:
option to ignore airplane mode

On my tab I use airplane mode to disable the phone part. But I use WIFI, please add a option in settings to ignore Airplane mode :)
[Android Apps and Games] chamonix:
That should not be that hard: https://github.com/asksven/BetterWifiOnOff/issues/74
[Android Apps and Games] chamonix:
https://github.com/asksven/BetterWifiOnOff/issues/75
[Android Apps and Games] chamonix:
Ok I feel we have enough fixes and features for a new increment. Starting on 1.1 tomorrow....
[Android Apps and Games] XenomorphXx121:
HI I have virgin media 100 Mb broadband and have very strong signal and my battery is draining very quickly while using it more than when I use 3g.

Not sure if that is why the battery is draining fast but I've tried everywhere else for answers and my pursuit of a better battery took me here.

Great app though I must say :)

Quick question does this app override normal s3 settings?
[Android Apps and Games] chamonix:
If you want to pin the cause of a drain I suggest bbs.

What do you mean with 'override'? This app controls wifi as if you would do it by hand turning it on/off. Settings are effective while wifi is on
[Android Apps and Games] chamonix:
I need to test the tasker/locale plug in and will release 1.1 beta 1 once this is working. Stay tuned
[Android Apps and Games] XenomorphXx121:
Was asking because I set my android options to stay awake always while sleeping and on better WiFi I've got leave WiFi on if plugged in but WiFi switched off when screen was off and plugged in.

Probably need to get the hang of this and do some learning, I've probably done something wrong.
[Android Apps and Games] tiwag:
Please add again the checkbox to En-/Dis-able better wifi onoff in the startpage. It's terrible to have to go to the settings for that.

What's the last version which had this? Can i download it somewhere? Thanks!

tapatalked using recycled bits and bytes
[Android Apps and Games] Dr.69:
Thank you for your response. No, I haven't.

Here is the catlog of the phone booting up. I can already see some permission issues.
[Android Apps and Games] pwvandeursen:
Great! as requester I will definitely test and feedback. will be looking out for the new version

Patrick
[Android Apps and Games] chamonix:
1.1 has something better: a toggle widget
[Android Apps and Games] chamonix:
Based on what observations did you draw the conclusion that the service did not start at boot. The log says:

D/BetterWifiOnOff.BroadcastHandler( 1447): Boot completed, starting service
[Android Apps and Games] Dr.69:
Yes, you're right, it works now. I've changed the kernel 2 days ago. Maybe it's related, because when I checked it, a week ago, it obviously didn't work. (I checked it couple of times while the phone is unplugged, and non of the rules worked. )

Anyway, thank you for this great app and for the support :)
[Android Apps and Games] chamonix:
Release 1.1B1

First beta of 1.1 is up. Check changelog for details and happy testing!
[Android Apps and Games] chamonix:
"Failed to set country code GB" tells me that there is a discrepancy between the country config of your wifi stack and the one from your access point. You may want to try Wifix Manager to adjust the country settings of your phone (different coutries, different channels). Now I can't tell if that is related to the above mentioned problem but may worth a shot
[Android Apps and Games] LemmingUK:
Thanks for that. Will look into it shortly.

Just briefly, found another anomoly in the app. Sometimes convices itself that "the user" turned off wifi when it had done so. To solve this for now I have simply allowed it to turn on even if it did not trn off first.

Sent from my GT-I9100
[Android Apps and Games] RovG:
Ok, so when this happens...if I turn off the screen by pressing the power button and then press the home button to wake up the device, animation & signal strength start working again.:eek::)

Sent from my GT-I9100
[Android Apps and Games] chamonix:
Ok so basically you are saying that "On only when previously on" works inconsistently right?
[Android Apps and Games] RovG:
Yes.:o
[Android Apps and Games] LemmingUK:
Correct. Reading the log from the app confirms this

Sent from my GT-I9100
[Android Apps and Games] patsmike:
In its current state, this app seems to be almost the same as "wifi timeout"

https://play.google.com/store/apps/details?id=com.lastmile.wifitimeout

But wifi timeout is much leaner and uses less memory than this app.

I'm excited to see an alternative though and hope it will improve!
[Android Apps and Games] chamonix:
Please feel free to suggest any functionality you are missing.
[Android Apps and Games] LemmingUK:
That was the app I used previously which did not have all the features I needed such as turn off if no connection, when to turn on etc

Sent from my GT-I9100
[Android Apps and Games] chamonix:
Issue #1 added
[Android Apps and Games] rwelsh09:
I'm excited to see what you do with this app. I love BBS!
[Android Apps and Games] patsmike:
What I liked from "wifi timeout" was that you can chose any wifi delay that you want (instead of choosing from 10sec, 1min, etc).

Another functionality I would loveee to see would be to have the wifi stay on when the phone is turned off or the screen times out during a download/upload (sending large email, etc). There is nothing more annoying than when my downloads don't finish before the wifi is turned off and it just cancels the download or tries to send huge emails using 3g. Maybe have the wifi remain on if the phone doesn't go to deep sleep. Or have the wifi delay start counting down as soon as the phone screen is turned off AND it goes to deep sleep.

Thanks chamonix :D
[Android Apps and Games] patsmike:
Also is it possible to cache the service as a background process so that it doesn't take up RAM and runs leaner? I believe this is how the wifi timeout app works.
[Android Apps and Games] chamonix:
Better Wifi on/off does not run as a foreground service (if it would you would see it in the notification bar but as a stick background service that can be moved out by android.
[Android Apps and Games] chamonix:
This is a tricky one as there no way I know of to be informed by android just before the phone goes to deep sleep. Nevertheless I can try to find a way to detect if there is a partial wakelock held at the point in time when the alarm for rurning off wifi after the screen went off goes off. In that case I could reschedule it for later and repeat that operation. This would of course mean that if a partial wakelock is held all the time wifi would never go off.

Edit: added this feature request: https://github.com/asksven/BetterWifiOnOff/issues/2
[Android Apps and Games] chamonix:
Release 0.2

Version 0.2 is up with a few fixes and new features. Check post #1 for changelog.
[Android Apps and Games] alexinna:
I'm using SSIII and Wi-Fi sleep policy didn't work as it should. Tried both "Never" and "Only when connected" but still Wi-Fi was up on many occasions. I hope your app will help to resolve this issue.

Version 0.1 had some issue to turn Wi-Fi On after screen unlock. I see you changed something in v 0.2 so I'll try it first before describing my situation.

Also do you think it make sense to stop Wi-Fi even if I'm on 4G? The reason I'd like to stop it because of too many "wlan_rx_wake" wakelocks.

Time will show what is better in my particular case but what do you think should be better in 4G case?

Thanks for all your hard work.
[Android Apps and Games] chamonix:
I have the same device as you :)

For me leaving wifi on is not an option as I travel a lot and can not control all Wifi Hotspots in regards to traffic waking up my phone.

Add to this that I use cell location and Google maps but am not ready to pay for the overhead cause by caching when wifi is on and you have the motivation behind me writing this tool.

What issues did you have turning wifi on at screen unlock? If they persist could you send a logcat?
[Android Apps and Games] alexinna:
Good to know. Nice phone. The only problem I have is a battery. It drains 2-3% hourly on idle :(

Hate to see ~60% at the end of working day if I didn't use it much. I just started with this phone but my previous one (Droid X) had an excellent battery life so I never even had a need to use tools like BBS and Wi-Fi was always on at home.

I hope both of your tools together will help me to solve the battery life situation. :)

I'll post in BBS thread in case I wouldn't able to figure out it on my own but if you have some general observations/recommendations on SSIII settings please let me know.

On v. 0.1 app failed to turn Wi-Fi ON when I unlocked phone complaining that it was put OFF by user (and I didn't). Changed sleep policy to "Always" and it still complaining occasionally.

Happy to report that so far v. 0.2 works all the time. :)

---------- Post added at 04:24 PM ---------- Previous post was at 03:37 PM ----------

Just got the same situation again. App failed to return it to On state. Wi-Fi is OFF now. Here is what I see in a log:

2012-07-30 10:15:03 Received Broadcast ACTION_SCREEN_OFF

2012-07-30 10:15:03 scheduleOffAlarm called

2012-07-30 10:15:03 cancelAlarm

2012-07-30 10:15:34 cancelWifiConnectedAlarm

2012-07-30 11:08:30 Received Broadcast ACTION_SCREEN_ON

2012-07-30 11:08:30 cancelAlarm

2012-07-30 11:08:30 scheduleWifiConnectedAlarm called

2012-07-30 11:08:32 Received Broadcast ACTION_USER_PRESENT

2012-07-30 11:08:32 cancelAlarm

2012-07-30 11:08:32 scheduleWifiConnectedAlarm called

2012-07-30 11:09:02 cancelWifiConnectedAlarm

How can I put in a log everything that is on app console?

Not sure what could put Wi-Fi OFF. I'm using Llama to identify that I'm Home and Wi-Fi should be On. Llama still shows I'm Home.

Any idea?
[Android Apps and Games] RovG:
Hi Chamonix,

Thank you for the new beta.

I have Better Wifi on/off configured to enable wifi on screen unlock but if I manually disabled wifi it still turns it on. I think we need a new pref. "Honour user choice". What are your thoughts on this? BTW it worked like this in the previous released version as well.

I also noticed that if I manually disabled wifi and Better Wifi on/off turns it on again the icon in the notification displays correctly and animates.
[Android Apps and Games] RovG:
Hi Chamonix,

Please give the following consideration:

Scenario:

BWOO is configured to turn off wifi on screen off with 30 sec delay. If during that 30 sec I turn the screen on by pressing the home key BWOO turns wifi off anyway.

Preferred behaviour:

During the 30 sec count down if screen is turned on abort the count down and leave wifi on.