yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] jhuff83:
Just uninstalled and reinstalled and still getting the force closes. I have a Galaxy S 3 using MOAR rom

Edit: Seems like I got the force closes to stop by uninstalling and then clearing cache and dalvik within recovery. Cell ID tagging is still not working though.
[Android Apps and Games] Mr.AFK:
AW: [APP][2.1+][01 Apr - 2.0RC4] Better Wifi on/off

Last log was 32,7kByte, the New has 1,5 MByte more.

The attached logs here are approximatly 33kB.

I've checkt all logging options.

Found 1 file at root of sd card. It is possible to go straight to log/debug file through the app (like Menue Button go to log file)

CiD works for me. (enabled wifi only if CiD is correct and tagged)

Got only 1 bwof "wurde angehalten" after leaving the app and still in app drawer.

Will update to rc4 later.

Gesendet von meinem GT-I9100 mit Tapatalk 2
[Android Apps and Games] jhuff83:
Re: [APP][2.1+][01 Apr - 2.0RC4] Better Wifi on/off

What is the trick if you are using wifi tether so you will not get booted from tether when screen goes off then you unlock it? When this happens wifi tether shuts down due to wifi trying to turn back on.
[Android Apps and Games] Mr.AFK:
AW: [APP][2.1+][01 Apr - 2.0RC4] Better Wifi on/off

Updated to rc4.

Only some spelling issues in german translating till now

Gesendet von meinem GT-I9100 mit Tapatalk 2
[Android Apps and Games] inFECT:
Running RC4 and have some strange issues with the cell location function.

Turning on via collected and tagged CID's seems to be no problem, but wifi wont turn off as soon as i leave the CID. Also the app crash sometimes during the switch between 2G/3G. A cosmetic thing is that in the logfile the whitelisted AP will be just listed as %s and not anymore with the correct name.

Debug dump file -> http://dagobah.dnsq.de/xda/betterwifionoff-2013-04-02_234410902.txt

Hope it helps..
[Android Apps and Games] chamonix:
Re: [APP][2.1+][01 Apr - 2.0RC4] Better Wifi on/off

Before turning wifi off tethering is checked and if positive wifi should not turn off. If in your case wifi is turned off that would be a bug. Please confirm and attach a logcat
[Android Apps and Games] chamonix:
Re: [APP][2.1+][01 Apr - 2.0RC4] Better Wifi on/off

As the Cid pref says Cid handling is only for turning wifi on right now but this could indeed be an additional use case. I will look into receiving Cid change events.

I will study you logcat once I am at a suitable device as it is hard to read on my phone
[Android Apps and Games] chamonix:
Re: [APP][2.1+][01 Apr - 2.0RC4] Better Wifi on/off

Please provide a logcat
[Android Apps and Games] chamonix:
Re: [APP][2.1+][01 Apr - 2.0RC4] Better Wifi on/off

The size of the log varies with the size of the logcat buffer and the amount of logging happening from all apps together.

If you suffer from fcs a logcat would be helpful. I do not plan to provide access to the logcat from the app as my experience is that those files are not readable on phone/tablet displays. If you still want/need to read it any decent file manager will provide a viewer
[Android Apps and Games] Mr.AFK:
AW: [APP][2.1+][01 Apr - 2.0RC4] Better Wifi on/off

No reason for me to open an advanced log file. I mean an option throw Menue Button to provided an log file straight to you. Without browsing on sdcard and so one.

Gesendet von meinem GT-I9100 mit Tapatalk 2
[Android Apps and Games] jhuff83:
https://www.dropbox.com/s/o89uo32tafc5diw/betterwifionoff-2013-04-03_125337584.txt
[Android Apps and Games] chamonix:
Oh, I had obviously misunderstood you. That's an idea. In fact I have a share implementation for logs and dumpfiles in BBS that I could easily copy. I added that as feature request #104
[Android Apps and Games] chamonix:
Are you possibly on a CDMA network? I notice that the cell collection uses TelephonyManager.PHONE_TYPE_GSM but not PHONE_TYPE_CDMA. I will have to look into CDMA cid coding to add that network type to the collector and will need you to test as I have only GSM available.

Edit: added #105 for that and already did the coding, it will be available in RC5
[Android Apps and Games] chamonix:
Unfortunately I can't find any info about the crash when going between 2G and 3G in that log, just a soft reboot that you may be worried about. Could you try to capture that event again? I will try to find a way to toggle between 2G and 3G to see if I can reproduce
[Android Apps and Games] chamonix:
There is no way to clear the cell log yet but I'll add that (#107). clearing the log will not clear the info about the tags attached to specific cids.
[Android Apps and Games] jhuff83:
Re: [APP][2.1+][01 Apr - 2.0RC4] Better Wifi on/off

Nailed it. I'm on cdma sprint.
[Android Apps and Games] MichunB:
I noticed strange behavior of Better Wifi on/off

you can see event

"c/access point is whitelisted: leaving Wifi on"

but AP seen in current location is not whitelisted !!!

I have only one whitelisted AP and it is 15km away

Better Wifi on/off should turn wifi off

because

1. out of tagged CID - setting checked

2. it is not connected - setting checked

3. and AP is not whitelisted - 2 settings checked

but it does not
[Android Apps and Games] inFECT:
Well, since i configured BWOF to leave wifi=on only if connected to whitelisted AP, i presumed that it will work in combination with the CID. I use basicly the same options as before, with the difference that wifi turns on with cid instead of unlock the screen.

Well, the phone is kinda bloated right now. It's not my primary and just for testing, thats why i have a lot of errors in the log like the "deep redirect failure" stuff which is a broken theme i.e. -- anyhow i try to reproduce it. Happens usualy twice a day, but i try to force it. It might have something to do with the Toggle2G app, which switch the phone from 2g to 3g during the screen unlock state. I'll keep digging. On a sidenote, i have a screenshot for you which shows an error that i can't explain myself. "alarm:null" and you will see the %s variable.

screenie -> http://dagobah.dnsq.de/xda/screenshot-20130404-122421.png

Cheers
[Android Apps and Games] chamonix:
Re: [APP][2.1+][01 Apr - 2.0RC4] Better Wifi on/off

1. True if whitelisted AP is not in range. A logcat could help. Cid will not apply for turning wifi off
[Android Apps and Games] chamonix:
Re: [APP][2.1+][01 Apr - 2.0RC4] Better Wifi on/off

%s is fixed in upcoming Rc5, null in the alarm is a sign for an exception with inproper handling of the reason: I will fix that too so that we can see the reason and we can then go from there
[Android Apps and Games] MichunB:
here you got logcat

https://www.dropbox.com/s/6iej9qhqtd88wzp/FakeAPwhiteListed-1.log

and here summary

04-04 11:44:55.680 D/BetterWifiOnOff.WifiOffAlarmReceiver(25971): Alarm received: preparing to turn Wifi off

04-04 11:44:55.720 D/BetterWifiOnOff.WifiOffAlarmReceiver(25971): Checking if in call

04-04 11:44:55.725 D/BetterWifiOnOff.WifiOffAlarmReceiver(25971): Checking if tethering is active

04-04 11:44:55.740 I/BetterWifiOnOff.WifiOffAlarmReceiver(25971): No tethering detected

04-04 11:44:55.765 I/BetterWifiOnOff.WifiOffAlarmReceiver(25971): Checking against SSID whitelist: StepyMongolskie72

04-04 11:44:55.765 I/BetterWifiOnOff.WifiControl(25971): Whitelist check: ssid: , whitelist: StepyMongolskie72, result: true

04-04 11:44:55.765 I/BetterWifiOnOff.WifiOffAlarmReceiver(25971): Access point is whitelisted, leave wifi on

for the record, 'StepyMongolskie72' was out of range, it is my home wifi to which phone was connected before going out to work

I played with it a little and

when I manaualy turn wifi off, BWOF do not turn it on with CID condition

04-04 14:57:34.715 D/BetterWifiOnOff.SetWifiStateService(22652): Cell 6669868 has no tags: do not turn wifi on

this works fine

but when I manually turn wifi on, BWOF takes not connected, not present network 'StepyMongolskie72' checks that it is whitelisted and leaves wifi on like in summary above
[Android Apps and Games] chamonix:
Wow, nice catch: if you look exactly

04-04 11:44:55.765 I/BetterWifiOnOff.WifiControl(25971): Whitelist check: ssid: , whitelist: StepyMongolskie72, result: true

a blank SSID is checked aginst the whitelist and of course blank is in there (#109)

I was preparing the next RC put will fix that one before releasing

Edit: fixed, will upload in a moment
[Android Apps and Games] chamonix:
New RC is up with a bunch of fixes and a few improvements. Happy testing
[Android Apps and Games] jhuff83:
Newest RC not working for me. Giving me alarm received turning wifi off. Cell ID's still not working.

https://www.dropbox.com/s/n5528pg73tvzme1/betterwifionoff-2013-04-04_140201830.txt
[Android Apps and Games] chamonix:
Found it, thanks:

flg=0x50000010 } in com.asksven.betterwifionoff.handlers.ScreenEventHandler@4261b400
E/AndroidRuntime( 5014):	at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java)
E/AndroidRuntime( 5014):	at android.os.Handler.handleCallback(Handler.java)
E/AndroidRuntime( 5014):	at android.os.Handler.dispatchMessage(Handler.java)
E/AndroidRuntime( 5014):	at android.os.Looper.loop(Looper.java)
E/AndroidRuntime( 5014):	at android.app.ActivityThread.main(ActivityThread.java)
E/AndroidRuntime( 5014):	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 5014):	at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 5014):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
E/AndroidRuntime( 5014):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
E/AndroidRuntime( 5014):	at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 5014): Caused by: java.lang.ClassCastException: android.telephony.cdma.CdmaCellLocation cannot be cast to android.telephony.gsm.GsmCellLocation
E/AndroidRuntime( 5014):	at com.asksven.betterwifionoff.utils.CellUtil.getCurrentCell(CellUtil.java:53)

Edit: fixed for RC6
[Android Apps and Games] MichunB:
thanks for RC5, issue with blank SSID is resolved and CID works well

there is another issue

As BWOF started working with location I bought donate version BetterWifiOnOff Donate but it does not work with BWOF RC version - RC5 version still has adds and says thas this is free version

and by the way

why not call it Better Wifi On/Off Donate with spaces like main app? slightly different name is misleading
[Android Apps and Games] chamonix:
Can you please provide a logcat after opening the bbs main screen? The detection is done at start time and there must be something failing in detecting the donate token. I will make the naming consistent
[Android Apps and Games] MichunB:
this is logcat

https://www.dropbox.com/s/gqysmg4wggfqa6n/logcat-2012.04.05-15.01.log.7z

I was starting BWOF about 15:01

or shorter version about app start

https://www.dropbox.com/s/6a3udoorjn3uwok/2013-04-05-15-18-49.txt
[Android Apps and Games] chamonix:
RC6 is up, hopefully fixing CDMA cell collection. I'd be happy to hear from any CDMA phone user as I can't test myself
[Android Apps and Games] jhuff83:
Looks like you fixed the cell collection for CDMA.
[Android Apps and Games] tkjeeper:
Chamonix, I'm not sure if this app is what I'm looking for, I'm hoping you could help me. I've tried tasker for this but it's not quite what I need.

The problem is that in my house the wifi works great until I go to bed, the signal doesn't reach back there. I'm looking for an option that will turn the wifi off automatically if the connection is very week for a period of time. Yes it's easy enough to just physically turn off wifi. At first I thought this app would do it but either I set it up wrong, or is not made for that. Please advise, and thanks for your hard work.
[Android Apps and Games] jhuff83:
I have the same issue and this app works great for turning it off. I have it set to turn off in 10 seconds when screen is off. When screen goes on wifi kicks back in.
[Android Apps and Games] chamonix:
If the Wifi connection is lost BWOF will turn off Wifi automatically. It will be turned on again once you turn on your phone and a connection can be established
[Android Apps and Games] chamonix:
I have checked logs and indeed the "donation" is not detected, sorry for that. I need to set up some testing environment for that as it seems that there have been a change in security when apps are installed from gplay making them behave differently from the same signed app installed from an APK. In other words I will buy my "donate" app and do some debugging :)

Both issues were added to github: #112 and #113
[Android Apps and Games] chamonix:
2.0RC7

New version is up.
[Android Apps and Games] MichunB:
I am sorry but it did not help with detecting donated version, my app is still 'free version' with ads

logcat about starting app

https://www.dropbox.com/s/h18eotzr3sihpkc/2013-04-06-18-21-11.txt
[Android Apps and Games] chamonix:
Thanks! I nevertheless see the progress now. Next release should do the trick
[Android Apps and Games] chamonix:
New version is up, should work now. If it does it would be great if you could then uninstall the donate version, check again and finally reinstall it.
[Android Apps and Games] Mr.AFK:
Updated to rc8 and buyed the support the dev in playstore.

Where does i See that it works?

Ahh update :

Gesendet von meinem GT-I9100 mit Tapatalk 2
[Android Apps and Games] patsmike:
Donate version works now. I installed the free app first, then installed the donate.
[Android Apps and Games] chamonix:
Ads should be gone
[Android Apps and Games] chamonix:
Thanks you guys! It seems we have a release. I will be pushing to gplay tomorrow in the morning
[Android Apps and Games] MichunB:
I did the trick and it works

after uninstalling donate version BWOF returns to show ads and after re-installation of donate version ads are gone

thanks for great work
[Android Apps and Games] chamonix:
Release 2.0

I have merged 2.0 and uploaded the final release. There are no changes since RC8 except the merge itself. This release goes to gplay tomorrow.
[Android Apps and Games] zakiancel:
thank you

thank you :good:
[Android Apps and Games] denzel09:
Seems good thanks
[Android Apps and Games] dallboy:
Looks great! I'm about to try :good:
[Android Apps and Games] cm5:
Can you change the caged check to use the same or similar network portal detection used by android/chrome os/windows 7.

Some hotspots like mine will pass the google dns check. The reason being is some wifi portals allow dns lookups, allow pinging, but don't allow tcp handshakes and redirect all http traffic requests.

The way to do this check would be the answer found on the bottom here:

http://stackoverflow.com/questions/10813635/checking-internet-connection-on-wifi-hotspot

More info why to use this check here:

http://www.chromium.org/chromium-os/chromiumos-design-docs/network-portal-detection
[Android Apps and Games] MichunB:
I have a problem with BWOF (2.0.0.0 gplay version)

https://www.dropbox.com/s/4vxv4xzgamg3lx2/betterwifionoff-2013-04-08_104732670.txt

here is summary:

D/BetterWifiOnOff.WifiOffAlarmReceiver(29307): Alarm received: preparing to turn Wifi off

D/BetterWifiOnOff.WifiOffAlarmReceiver(29307): Checking if in call

D/BetterWifiOnOff.WifiOffAlarmReceiver(29307): Checking if tethering is active

I/BetterWifiOnOff.WifiOffAlarmReceiver(29307): No tethering detected

I/BetterWifiOnOff.WifiOffAlarmReceiver(29307): Checking against SSID whitelist: StepyMongolskie72

I/BetterWifiOnOff.WifiControl(29307): Whitelist check: ssid: 'StepyMongolskie72', whitelist: 'StepyMongolskie72', result: true

I/BetterWifiOnOff.WifiOffAlarmReceiver(29307): Access point is whitelisted, leave wifi on

but wifi is not connected to 'StepyMongolskie72', in wifi settings status of this AP is 'not in range' and I am few kilometers away from this AP :(
[Android Apps and Games] chamonix:
That's a good read. I will implement (#115)
[Android Apps and Games] chamonix:
That's weird. The method I use is:

WifiManager.getConnectionInfo().getSSID() : Return dynamic information about the current Wi-Fi connection, if any is active.

What Android version / ROM are you on?
[Android Apps and Games] MichunB:
I am on stock i9300XXEMB5 Rom. I am now at different location with other AP and I will try to replicate situation
[Android Apps and Games] patsmike:
I see an error in the app whitelist feature. All apps that I have tested work, except for the "Downloads" app, which still allows wifi to turn off. I'm pretty sure it had worked in previous versions, but I may be wrong. Attached log.

I am assuming that just keeping the app open and up front in UI will keep wifi from turning off, correct?
[Android Apps and Games] boobiestar:
When I use the BWOF widget, it works not as stated in the events log. When I disable processing by tapping the widget, in the events is stated that I also turned off wifi. I didn't toggle the wifi button and wifi is still going on. See the pic for the last event and on the statusbar the full working wifi icon.

Question is the BWOF widget only for disabling the BWOF processing or also for turning off and on of the wifi?

Verstuurd van mijn GT-I9300 met Tapatalk
[Android Apps and Games] jhuff83:
On the latest version I have checked connect to strongest wifi point. It will not connect to the strongest though. I know this because I bought a wifi extender and placed it in my bedroom due to the crappy signal I was getting from my router on other side of the house. Any suggestions for this?
[Android Apps and Games] chamonix:
Can you provide a logcat for us to look into the selection algorithm?
[Android Apps and Games] chamonix:
Here's the place where Wifi was turned off after checking the app whitelist:

I/AppUtil (12486): Testing running apps against whitelist: [com.android.email, com.android.providers.downloads.ui, com.microsoft.skydrive, com.android.vending, com.dropbox.android, com.pandora.android, com.google.android.gm]
I/AppUtil (12486): State 400 is not considered active
I/AppUtil (12486): com.rageconsulting.android.lightflow, 200 is not in whitelist
I/AppUtil (12486): com.asksven.betterwifionoff:remote, 100 is not in whitelist
I/AppUtil (12486): com.android.inputmethod.latin, 200 is not in whitelist
I/AppUtil (12486): State 400 is not considered active
I/AppUtil (12486): com.android.location.fused, 130 is not in whitelist
I/AppUtil (12486): android.process.acore, 200 is not in whitelist
I/AppUtil (12486): com.google.process.gapps, 200 is not in whitelist
I/AppUtil (12486): com.google.process.location, 200 is not in whitelist
I/AppUtil (12486): com.android.systemui, 100 is not in whitelist
I/AppUtil (12486): system, 100 is not in whitelist
I/AppUtil (12486): State 400 is not considered active
I/AppUtil (12486): android.process.media, 100 is not in whitelist
I/AppUtil (12486): State 400 is not considered active
I/AppUtil (12486): State 400 is not considered active
I/AppUtil (12486): State 400 is not considered active
I/AppUtil (12486): State 400 is not considered active
I/AppUtil (12486): State 400 is not considered active
I/AppUtil (12486): State 400 is not considered active
I/AppUtil (12486): State 400 is not considered active
I/AppUtil (12486): State 400 is not considered active
I/AppUtil (12486): State 400 is not considered active
I/AppUtil (12486): State 400 is not considered active
I/AppUtil (12486): State 400 is not considered active
I/AppUtil (12486): State 400 is not considered active
I/AppUtil (12486): State 400 is not considered active
I/AppUtil (12486): State 400 is not considered active
I/AppUtil (12486): State 400 is not considered active
I/AppUtil (12486): com.android.smspush, 200 is not in whitelist
I/AppUtil (12486): com.android.phone, 100 is not in whitelist
I/AppUtil (12486): State 400 is not considered active
I/AppUtil (12486): State 300 is not considered active
I/AppUtil (12486): State 400 is not considered active
I/AppUtil (12486): State 400 is not considered active
I/AppUtil (12486): State 400 is not considered active
I/AppUtil (12486): State 400 is not considered active
I/AppUtil (12486): State 400 is not considered active
I/AppUtil (12486): State 300 is not considered active
I/AppUtil (12486): State 300 is not considered active
I/AppUtil (12486): com.android.nfc:handover, 200 is not in whitelist
I/AppUtil (12486): com.android.nfc, 100 is not in whitelist
D/BetterWifiOnOff.WifiOffAlarmReceiver(12486): No whitelisted app running: turning Wifi off

As you can see com.android.providers.downloads.ui was not running.
[Android Apps and Games] chamonix:
The widget is for enabling/disabling the processing so this is a bug (issue #116). It will be fixed in next release
[Android Apps and Games] jhuff83:
Here is the log you requested for the app not connecting to the strongest wifi AP.

https://www.dropbox.com/s/ln0g29dpea3uqu5/betterwifionoff-2013-04-09_155713645.txt
[Android Apps and Games] patsmike:
Hmm interesting, so does just having the app open when turning the screen off not count as "running"?

Appreciate your hard work!
[Android Apps and Games] chamonix:
Well the problem seems to be that the app running is not always related to the main Intent you have selected as is does to appear in any state in the log. I suspect that a service takes over to do the async stuff and the (main) download activity gets recycled (maybe media).
[Android Apps and Games] boobiestar:
I have the option enabled for turning Wifi on when plugged. In the events log I see no notification of "Power was connected". I do see an event when phone is unplugged: "Power was disconnected". It is just a suggestion to be considered, to have a complete overview. Processing is working as set.

Verstuurd van mijn GT-I9300 met Tapatalk
[Android Apps and Games] chamonix:
#117
[Android Apps and Games] Thomas_BA:
Using the app since I think the first post here and took the opportunity to donate.

Installed the donate Plugin from the market but adds still show up. Rebooted, cleared cash, fresh install, etc, no result.

Any idea?

Send from my Mars Rover! Don't know how to get back to earth!
[Android Apps and Games] slicetwo:
Here's an interesting glitch I've noticed. I'm running CM10.1 3/17 nightly. I have a nandroid backup of the system for when I flash new ROMS that end up sucking. Whenever I restore from my nandroid, I have to uninstall and reinstall BWOO for it to work. Not sure why that is, and it isn't a big deal. It's just weird.
[Android Apps and Games] chamonix:
That definitely should not be. Could you please send me a logcat after starting the app?
[Android Apps and Games] chamonix:
The next time it happens please send me a logcat and I will look into it so see where it hangs
[Android Apps and Games] boobiestar:
By testing and optimising BWOF. I found another issue. In settings I have enabled the rule for switching wifi off when power unplugged. The event "Power was disconnected", is correctly stated in the event log, but I miss the action to "Scheduling Wifi to be turned off in 30 seconds" it is also not stated in the event log. So Wifi stays on I encountered.

Do I understand the function of this rule correctly or is it used in another situation?

I appreciate your hard work :thumbup:

Verstuurd van mijn GT-I9300 met Tapatalk
[Android Apps and Games] Thomas_BA:
Sent you an email from Argentine to Berlin with the log attached.
[Android Apps and Games] chrone:
Just purchased the app, sorry if this has been asked before, couldn't find the right keyword to search the thread.

How to set this app to turn on wifi after it being disabled by app coming from outdoor to indoor with saved white list ssid available when the screen is off?

I noticed it only turned on if i turned on the screen. Really need the feature for me getting bad 3g signal in indoor. If it can turn on wifi automatically while screen turned off and i am already in indoor where the saved white list ssid available, i could save more battery. :)

Thanks in advanced.

Sent from my Nexus 4
[Android Apps and Games] chamonix:
Thanks for the feedback. The feature request #93 is exactly what you are looking for. I will probably take this into the next main release.