yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] sebouh00:
Description:

Smart WiFi Toggler is an application designed to control your phone's WiFi using location based rules. Its aim is to conserve battery and minimize data charges by turning WiFi off when not connected to a network, and turning it on when a known hotspot is present. It constantly learns where your hotspots are located to make its decisions.

It's a very useful application if you frequently forget to turn WiFi off when leaving a hotspot, or if you want to automatically switch from mobile data to WiFi to conserve battery whenever you're back into a hotspot.

Hope you enjoy using Smart WiFi Toggler as much as I enjoyed building it!

*** I am happy to add support for more languages. If you are willing to help with the translation, please drop me an email. Thanks. ***

Features:

- Automatically learns your WiFi hotspot locations.

- Turns WiFi off when disconnected from WiFi network.

- Automatically turns WiFi on when near a known hotspot.

- Uses your network location. No GPS battery drain.

- Provides the ability to control "auto-connect" behavior for each hotspot.

- Ability to lock WiFi to a disabled state.

- Warning notification and auto-locking WiFi when a hotspot is down.

- History and logging, in addition to a view of what is going on under the hood.

Market Link (Still on 2.2.10): Click here

Bug report & Questions:

Any questions you have or bugs you would like to report, you may post it here or contact me on the app's developer email. I will try to get back to you as soon as I can.

Changelog

v2.3

- Brand new UI.

- Performance tweaks.

- Bug fixes.

- Added Spanish, Hungarian, Hebrew, Japanese, and Turkish languages. Thanks to Carlos Filoteo, Laszlo Horvath, Yev Gavrikov, Kayoko Sawada, and Fikret Sadak!

v2.2.10

- Added a new statistics screen.

- Better toggler accuracy for devices with a barometer.

- Added Danish, Traditional and Simplified Chinese language support. (Thanks to nodjack (xda), Bryan Yang and Eclipse!)

- Ability to change the app's language from the settings.

- Replaced Tips with an online FAQ.

- Google Analytics to help improve the app.

- Bug fixes.
[Android Apps and Games] mikpel:
Great idea!

If I understood correctly from the screenshots, the app will shut down wifi when the connection is lost. How does it know when the device is back to hotspot area? By using gps locations?
[Android Apps and Games] sebouh00:
GPS is not used. It uses your network location. It's not 100% accurate, but the aim was to use as little battery as possible. GPS would not have fit that criteria.
[Android Apps and Games] mikpel:
Actually that's what I wanted to hear because, as you say, gps would spoil the idea of battery saving. :)

Now I really have to try this!
[Android Apps and Games] sevag00:
Cool app bro. You finally released it to the public. I will definitely check it out. You guys should probably try it. There is very hard work in it. Keep up the good work.
[Android Apps and Games] Cloaker:
Anyone else getting "unable to process purchase" from the market??
[Android Apps and Games] AzNTypeR:
Nope :)
[Android Apps and Games] Cloaker:
Finally got it working. It was my fault. :P

Now it's crashing on me when I select the start button. On an evo 3d running cm9.
[Android Apps and Games] sebouh00:
Well that's no good. Please send me your logcat trace. I'll try to find out why that's happening.

Edit: I just saw the crash report. Do you have a CDMA phone? If so, it won't work. Currently, it only works on GSM. I should have mentioned that, sorry.
[Android Apps and Games] Cloaker:
Awwww! Yes it's cmda. I'm sad now, all the other apps like this are out dated. Oh well, keep up the good work coughcmdacough :P
[Android Apps and Games] sebouh00:
Updated to version 1.1. Now supporting CDMA devices (thanks to Cloaker).
[Android Apps and Games] lexluthor:
Any reason that I'd want to replace Y5 with this? Does this do anything different or better?
[Android Apps and Games] sebouh00:
I don't know really. I've never tried Y5.

After checking it out, it looks outdated (kidding...). Smart WiFi Toggler has more options i guess. Timer control, per-wifi settings, etc.

Try it, see if you like it. If not, I'm happy you tried anyway. :)
[Android Apps and Games] Cloaker:
Y5 for me seemed to open too large of an area, this seems tighter and has more options. Also, I'm not afraid to offend, lol, y5 is outdated.
[Android Apps and Games] lexluthor:
Yes, Y5 is very outdated at this point and is probably abandonware, but it does still work.

Always looking to replace abandoned apps with apps still supported though, so I'll give this a try.

I have an issue/bug? and a couple of questions so I can understand how it works.

First, in the initial startup settings pages, I chose to not run service in foreground, but if I did, I couldn't uncheck show notification icon. After initial setup, when I go into settings, run service in foreground was checked. But, over in those settings, I can disable the show notification icon. Seems like run service in foreground and no notification icon is my preferred solution, so I'll use that. Hopefully, that will keep the program from getting killed.

So, is this using cell tower information to determine that I'm near a known wifi hotspot?

What happens if I walk out of my house and lose the wifi connection for a couple of minutes and then I come back in and want to connect back to wifi. It seems like it will turn wifi off after 30 seconds because I was disconnected from my wifi hotstop. Will it turn wifi back on by itself again?

EDIT: Tested it and wifi does not come back on. So, then what logic makes it ever come back in? Do I have to go far enough away that smart wifi toggler thinks I'm out of range of my wifi and then come back in range?

Hopefully, there's a way to make that work better or that's probably a deal breaker for me.

The thing I don't like about Y5, which I think this fixes is if I turn off wifi while Y5 is running, it turns it right back on immediately. The only way to actually make wifi stay off if I'm in a known wifi hotspot is to disable Y5.

It'd be nice if there was a way that if I manually turn off wifi, it stays off, but if wifi just gets disconnected, it comes back on automatically.

What happens if I set wifi disconnection to 0? Will wifi still go off when I'm out of range (based on your cell tower information) of a known wifi hotspot?
[Android Apps and Games] sebouh00:
Hi lexluthor. Thanks for trying out the app. Let me see if my answers can be useful:

As far as I know, android does not permit running in foreground mode without showing a notification. If I'm wrong here, I'd appreciate an example where this is not the case. If you choose to not run in foreground mode to avoid the icon, android will keep killing and restarting the service because of inactivity.

Do I understand correctly that you could disable the icon in foreground mode? If so, please make sure that whenever you check foreground mode, you have to restart the service so it can take effect. (It should show you a "service restart required" toast message).

You are correct. It is using your cell location info. Just like you've observed, when wifi gets disconnected, the timer will start counting. On timeout, it will turn wifi off. Logically, there is no way the app can know if you are inside or outside. What it does do however, is the next time you wake the phone up from sleep (screen off then back on) it will enable wifi and wait for a connection. (I'm assuming here that you are connected to the same cell inside and outside of your house).

The only difference I can think of inside and outside your house is the signal strength. This is something I plan to experiment with to see how useful in can be to get even more accuracy.

This is something I was experimenting with, but it made things complicated. How would the app know when to turn it on again automatically at a later time? Would you have to leave that location then come back? I guess this is something worth trying in future releases.

Setting the disconnection timer to zero will disable auto-wifi-off. This means WiFi will be kept on.
[Android Apps and Games] lexluthor:
I'll double check the service a little later. Right now, foreground mode is on, but I have no icon. I'll reboot and see if it remains that way. I'm probably wrong, but I thought you could have a foreground service in ICS with no icon.

Anyhow, no, wifi didn't come back on for me even after I turned the screen off/on. Your assumption that I'm connected to the same cell is probably wrong. In areas with a lot of cell towers, couldn't my phone connect to many different towers, even within my own house? Y5 says it has something like 30 towers remembered for me. Also, I know if I reset my Y5 data, even after a few days, there are times when I'm connected to wifi and connected to a cell tower that Y5 hasn't learned yet.

If your logic is that a wifi hotspot is associated with the cell tower that I'm connected to when I first connect to the wifi hotspot, that's going to be a problem if I can connect to many different towers while at that wifi hotstop.

Appreciate your responses so far. I'm just trying to help improve your program, not being critical in any way.
[Android Apps and Games] sebouh00:
If it didn't come back on, then you must have camped onto another cell. As I mention in the help section, if you're house is located in an area that keeps your phone hopping between cells, then Smart WiFi Toggler has to save all of them. It does in fact do that on every cell update whilst you're connected to a WiFi. This is the "learning curve" I mention in there. Once it has associated these cells with the hotspot, then you're good to go.

The thing I noticed about Y5 when I tried it today is that while I was standing in one location (inside an office -- with an inbuilding antenna system), it saved more than one cell for the hotspot. I felt this was excessive as it will make the auto-wifi-on window larger. Smart WiFi Toggler only saves the cell you are connected to. Not the neighbors. This has an initial disadvantage, but after that it's more efficient.

Anyway, I understand your concerns and your questions are all valid. I'm happy to answer all of them. In the end, you just have to try it and see if it works for you or not. I didn't have much audience to test the app with, but I'm fairly confident that 5 months of first hand testing and refining should make it a decent app. :)
[Android Apps and Games] lexluthor:
Great. Your responses are helping me understand the app better note and i should be able to help test better.

Will give it a learning curve and keep an eye on it and will post later.
[Android Apps and Games] lexluthor:
Ok. Looks like run in foreground and notification icon are now linked together. I turned run in foreground off as I don't like notification icons. I run that way with tasker and my phone has never closed out that service.

I'm still not seeing wifi ever come back on on it's own. I've turned wifi on and off a a few times in the hopes of it trying to remember more cells.

I see may cell location update received notices in the logs. When I toggle wifi on and off, I seem to always get cell already exists for this wifi entry in the log.

So, after I toggle wifi off and get that entry in the log, I put the phone to sleep, wait a few minutes, turn it back on and wifi still doesn't ever turn on.

Any idea what's going on?

I have a Verizon CDMA Samsung Galaxy S III running stock/rooted.
[Android Apps and Games] pvs1313:
i set it at every 5 minutes, but have not seen it check at all, i tested by coming home and leaving it on the counter for about 10 minutes, then i awoke it myself and it weas still on cell and it only then connected?
[Android Apps and Games] sebouh00:
Can you pm me the log file and mention the time you tested this? I'll have a look at why it didn't work.
[Android Apps and Games] asterixb:
implementing language italian....:cool:
[Android Apps and Games] esilac:
Has anyone experienced the roaming notification (cell signal strength empty triangle with exclamation ! on top) since installing this application on the Samsung Galaxy S3? Seems like it occurs when leaving a connected wifi area.

Working fine on my Galaxy Nexus, posting for a friend that has just started seeing this with this being one of the more recent applications installed. He's still looking into the issue if this is definitely the app causing it, though.

Thank you, keep up the great work, really enjoy the app.
[Android Apps and Games] sebouh00:
That's the failed connection attempt notification indicator. Your friend should check this warning notification setting to see after how many attempts it shows up. S/he seems to be connected to a known cell even after leaving the hotspot area.
[Android Apps and Games] RoboCD:
Auto-Connect Disabled Not Working

Anyone else having this problem? I live in a college town and have the university wifi saved on my phone in case I want to connect to it. But I made sure to turn the auto-connect off for the university network. However, this isn't working for any network that I set to disabled. This is also bad if I'm walking to class and walk past a building with wifi, and it will turn on every time, which is draining the battery more. Is this a bug or am I doing something wrong?

Droid Razr Maxx HD, Verizon
[Android Apps and Games] sebouh00:
Can you send me the log for when this happens and mention the approximate time? I'll have a look at what's going on.

Just send it to the developer's email.
[Android Apps and Games] :
I really want to like this app, but for some reason, it just hates me. My main issues with it:

Sometimes it will connect to wifi just fine, but out of nowhere, it will disconnect me. It wont even attempt to reconnect. Just flat out turns the wifi off.

Other times, Ill be near a wifi signal that I've connected to before, but it refuses to connect to it, even when I try to do it manually. However, if I turn the app off, I can connect to it just fine.
[Android Apps and Games] sebouh00:
Is your device rooted? Can you send me the logcat and kernel message logs?

For dmesg: run "adb shell" from the terminal. Enter "su". Then enter "dmesg > /<ext_storage>/dmesg.log" after replacing <ext_storage> with your device's external storage.

For logcat: run "adb logcat -v time -d > <path_to_file>" after replacing <path_to_file> with the location you want to save the file on your pc.

Please mention at what time his happened so I can know where to look in the logs.
[Android Apps and Games] wonderrx:
This app was working awesome/perfectly on my S3 on 4.0 but since I updated to 4.1.1 it turns the wifi off but never reconnects. I have tried uninstalling and reinstalling (not sure that that wipes the settings) with no luck.

As the above poster since I moved up to 4.1.1 I get the global roaming warning in this one little town that has very weak service (or none depending on where you are). Not sure if that is connected to Toggler, I doubt it to be honest.

Any suggestions how to get the app to turn on and connect again to my known access points?
[Android Apps and Games] sebouh00:
Hi. What do you see when you go to the Advanced screen? Does it show the cell and signal information? Does it show any potential hotspots?
[Android Apps and Games] wonderrx:
Thanks for your speedy reply!

First off toggler always works turning the wifi off, but since the jelly bean update it never turns it back on as it did when on ICS.

Phone is a rooted Verizon Galaxy S3, I live very near the tower.

When connected to wifi (by manually turning the wifi on) this is what I see:

Operator: null

LAC: 0

CID: 0

Signal: 0 asu (-113 dBm)

Unknown cell

Wifi Connected!

MYWIFINAME' min: UNKNOWN; MAX UNKNOWN

# of cells:7

Then in the log it says celllocation returned null inside onsigstrup

Then on the other screen it says CDMA and has some CI numbers and various Min and Max values. I can document that if that helps.
[Android Apps and Games] sebouh00:
Is "Location access" enabled in Android settings? Under there, is the "mobile network location" option checked?
[Android Apps and Games] wonderrx:
In settings/Location Services/ All three boxes are checked, VZW, GPS and Google. I think that is what you were looking for.
[Android Apps and Games] sebouh00:
Can you check Android's phone info service menu? On GNex it's by dialing *#*#4636#*#*. I don't know if it's the same for the S3.

Once you open that, do you get cell and signal data there? If so, please go back to the application and check if you get anything there then. There was a similar issue on the S3 mini. You have to access the phone info screen to "activate something" which would then allow apps to read the cell and signal info.

If everything fails, please restart the service and send me the app's log files.
[Android Apps and Games] wonderrx:
After a lot of googling it appears Verizon has hidden the service menu with this Jelly Bean update. I tried several combinations found on the web and then found several postings in all threads from the past few days of people also looking for how to access the JB service menu.

Not sure how to restart the service, is the logfile the one mentioned in settings/logging as being in the SD/SmartWIFIToggler dir? Should I post that here or email it to you directly?

Thanks for your help, I have a sinking suspicion that VZW has hosed me here on this. Inevitably I will flash a new rom and maybe even go to an AOSP rom and hopefully that will enable Toggler to work fully, even in this half state it still is turning off my wifi when I leave the house which has to be saving me battery.
[Android Apps and Games] sebouh00:
By restarting, I meant stopping and starting the service from the Main screen. The log files are the ones where you described.

To access phone info, try this app. Go to the main screen. The last button at the bottom called "Test" will open Android's test menu.

It would really suck if the official ROM has this problem. If you're getting half the functionality, you'd me missing out on half the fun!
[Android Apps and Games] wonderrx:
I had a device info app on my phone that opens the same window up. what would you like to know from the device info window? It naturally shows service, my IMEI, phone number. On the GRPS it says disconnected, network eHRPD:13.

It is set for LTE/CMDA/EvDo, the buttons that could be clicked include: Turn off radio, turn on IMS registaration required, Turn on SMS over IMS, turn on lte ram dump, then there are several options via the menu button.

Let me know anything you want to see from that.
[Android Apps and Games] sebouh00:
I've pm-ed you my email. Please send the log file there.

In the service menu, just check to see if the network id and signal strength info have proper values. If so, check back the app to see if it shows anything in the advanced screen.
[Android Apps and Games] mar.ioo:
This app sounds great. Downloading now :thumbup:
[Android Apps and Games] lexluthor:
Just installed today's update.

I see you can now read the barometer. How much of a hit on the battery is that? If it's anything but virtually nothing, I probably would disable it.
[Android Apps and Games] sebouh00:
Here's a rough estimate on my GNex:

- The barometer requires 0.7 mAh.

- The app registers for pressure updates every 10 secs for 5 secs. During one minute, that's 20 secs of sensor updates. That's 33% of the time.

- The GNex's battery is rated at 1750 mAh. If the sensor worked 24hrs, that would consume 24 * 0.7 ~= 17 mAh.

- 33% of that is 5.6 mAh. That is (5.6 * 100) / 1750 = 0.32 % of the battery capacity in single day.

If I've got this wrong, please someone correct me. Of course, there is additional consumption due to the fact that the app has to handle these updates. They come in about every 200 ms when the app has registered for updates. But I think that's negligible compared to what the sensor is using. And this only happens when the device is awake.
[Android Apps and Games] toddbecker:
The other reason to want to control the data setting is to actually limit data usage over the carrier network. In my situation, I have a limited family share plan for data and have been getting close to our limit. For the past few days, I have used other apps (Battery Widget? Reborn! and Motorola SmartActions) to try and control my data usage while away from my WiFi network. Essentially, these allow me to limit the background data usage. The widget just allows me to easily turn the background data on/off, while the SmartAction allows me to select on/off as well as only when a specific app is accessed.

In any case, what would be great is to have a switch inside the configuration of the Smart WiFi Toggler that allows me to select what background data sync mode the phone would be in when WiFi is disabled, switching to full on when WiFi is enabled and connected.

Thanks for the consideration!
[Android Apps and Games] jam_27:
crashing on 4.1.1

Crashing on my N7102 running this ROM. Please advice.
[Android Apps and Games] chevro1et:
Just installed from PlayStore. Will report back in a couple days.

EDIT: app works slick, as advertised, very low footprint, and notification icon can be removed in JellyBean. Gonna go and rate 5stars on PlayStore now.
[Android Apps and Games] newbieee:
Too many cells after a few days of use

Hi sebouh00,

first of all, let me thank you for your great app!

There is only one think I would like to ask:

When I clear all the app records and let the app learn those again, the app works perfectly for a few days after it has learned the cell locations. The problem starts after a few weeks of use when there is like 15 cells for each wifi. Then the app starts trying to turn on the wifi even when I'm like 500 metres from a building where the wifi is (and the distance is even spreading more every day when I'm present at the location).

=> It doesn't find the wifi signal, so after about 10 seconds it turns off the wifi. But when it turns off the wifi it's like, hmm.. I'm at the place where should be a wifi, and it turns the wifi on again, fails again... it does all of this again and again until I turn-off-lock the wifi or until I'm close enough it can connect to the wifi.

Is there a solution to this? Maybe some tweaking in app settings?

If it's not, I think it would be cool to be able to manually set the app, that it should not search for new cell towers for a specific wifi. This way, it can be set to stay at the level of just a few cells for each wifi and that's a situation when it works perfectly.

BTW if it helps, I use rooted HTC Desire with CyanogenMod 6 (Android 2.3.7) with wifi never sleeps policy, I don't use any periodic wifi checks and I will gladly help with any testing :)
[Android Apps and Games] sebouh00:
What setting do you have set for the cell signal influence? Make sure it is set to strong.
[Android Apps and Games] newbieee:
I already did that a few days ago. I also rebuild the cells data afterwards.

Other settings are:

Wifi disconnection: 10

Trial: 45

Manual intervention: 30

Minimum check interval: 10

Can your app learn that at given location (wifi neighborhood) it tried to check for a few times, was unsuccessful, so it won't try to check again?
[Android Apps and Games] sebouh00:
I guess cell network accuracy isn't good enough for the area you are in. Also, it may be beneficial to include a "Stop learning" option in future versions. Will note that down.

The behavior you're describing is the auto-lock feature. If the auto-lock setting is set to "Only for failed hotspot," then as soon as your device camps on an unknown cell it will auto-unlock.
[Android Apps and Games] newbieee:
Thank you, I'll be waiting and I'll made a donation afterwards! :)
[Android Apps and Games] ilya404:
Hey sebouh00,

great app! I have a question though: does it work if used together with other Wifi-Togglers?

Because I am using Optimus Battery Saver which turns off wifi/3g off when screen is off (with frequent ons to sync mail etc.)

I want to use them both, so when screen is on, the phone turns of wifi if there is none but i am worried that it might be contradicting themselves. Can't test it right now, but I will try to do it next week. Thus far just wanted to ask if you or anyone else already has experience with that matter.

thanks!