[Idea] WiFi On/Off when needed - Android Apps and Games

I had an idea how to save power.
How it works is that it would run in the background of the phone.
By default WiFi is turned off, however when an app requires some form of data connection, the WiFi app recognises this and turns on the WiFi.
If a WiFi network is near and you already have the password stored in the phone it connects to the network.
If a WiFi network is near and you dont have the password stored it prompts you with a popup. If you cancel the popup, WiFi gets turned off.
This way power can be saved so WiFi doesn't have to always be on and only gets turned on when needed.
Possible? What you think?

Juicedefender does this. It will cut off your WIFI if it's not around known networks. I think you have to buy ultimatejuice (it's worth it).

Related

Connect ONLY to wifi when one is available app

Is there such app?
or perhaps something that prevents the phone from disconecting from a wifi conection when it goes to sleep?/
or one that prevents the phone to go sleep while conected to a wifi?
The thing is, my plan is not unlimited and i dont want to use 3G if a wifi connection is available and connecting each time is a pain.
At some point Froyo was doing this (conecting automatically, almost instantl to my home wifi when i opened browser for instance) but not anymore.
cheers

Wifi stops working after being left for a while (still connected)

Having an issue with the Tab 2 where you go to pick it up and start browsing after it has been sitting around a while (not sure if the time matters, but it seems like after sitting for most of the day) and the wifi is still connected, but nothing works than needs data. It acts like it would if you had not internet connection. Toggling the wifi off and on will fix the issue and notificaitons and emails start pouring in.
Anyone else have this problem? I found a similar issue on the 7.7 forums but nobody reported a solution and I am not even sure if it would have worked on the Tab 2 anyways. I am thinking about making a script that toggles the wifi automatically if it detects it can't connect to the internet. But that is a little ridiculous needing to do that. It shouldn't be losing connection in the first place.
Hi Pirate
it's a bit depending on the ROM you have installed - but since Android 4 you have a quite reliable setting. The default behavior of Android devices is to deactivate the wifi connection when it goes to sleep.
Some ROMs don't recognize the disconnection and the switch/button still shows "Wifi on" although disconnected.
First step: go to settings / wifi settings, hit the menu button (top right three dots) and check the advanced settings.
Somewhat like "Keep WLAN active in standby" - set this to always.
That should solve it already under android 4.x
If this doesn't help, look into Play Store - search for "wifi keep alive". But for the SGT 2 you shouldn't need it
Greetz - Chris
It was already set to "Always" so I don't think that will help. I will look at that app to see what it does.
Sent from my Nexus 7 using Tapatalk HD
wifi turns off when not in use to save battery. I think it might be a default even if you have it set to always on.
guncrasher said:
wifi turns off when not in use to save battery. I think it might be a default even if you have it set to always on.
Click to expand...
Click to collapse
The problem is that it never comes back on. Well it shows the wifi icon and the signal and everything but it just doesn't have any data connection. Any apps that use data act like wifi is off. The only way to get it to start working again is to toggle wifi or reboot. I also forgot to mention it is the stock ROM, only rooted. It got the OTA a few days ago too and it has happened since then.
You're not alone
Skurvy_Pirate said:
Having an issue with the Tab 2 where you go to pick it up and start browsing after it has been sitting around a while (not sure if the time matters, but it seems like after sitting for most of the day) and the wifi is still connected, but nothing works than needs data. It acts like it would if you had not internet connection. Toggling the wifi off and on will fix the issue and notificaitons and emails start pouring in.
Anyone else have this problem? I found a similar issue on the 7.7 forums but nobody reported a solution and I am not even sure if it would have worked on the Tab 2 anyways. I am thinking about making a script that toggles the wifi automatically if it detects it can't connect to the internet. But that is a little ridiculous needing to do that. It shouldn't be losing connection in the first place.
Click to expand...
Click to collapse
It's the same effing stuff people suggest to every wifi glitch out there.
To people who think it's due to the wifi sleep policy: although I've set it to always, why would wifi not resume, after screen is turned on? It's not the wifi that gets disconnected, it's the internet (or the download speed) that stops working.
To people who suggest it's a power saving feature under low battery conditions: Sorry, I've tested it while charging and with full battery.
To people with the above two arguments: Connection to some routers works perfect with the phone. Like when I turn on the hotspot on another phone, the wifi works great. Also, wifi on the other phone from the same source (laptop used as internet access point) works well.
To people who suggest resetting the router or wifi on phone: The internet does start working again, but only for a few minutes. Even if the screen is turned on, the internet may stop working mid-download.
The actual situation is that the phone disconnects from the internet, but keeps showing a connection to wifi. Like I used connectify hotspot to create an access point, and after a few minutes, the phone moved from "connected clients" list to the "previously connected clients", even as the phone showed connected to wifi with even the download arrows blinking, but no internet (or download speed). This only happens with certain sources (of wifi). And other phones may work well with the same source.
I have tried (several times and in different orders and permutations) the following to no effect:
1. Resetting the router.
2. Resetting the wifi on laptop.
3. Resetting the wifi on phone.
4. Restarting the phone and laptop.
5. Static IPs, gateways and DNSs. (Even though the problem was not with connecting to wifi and even internet works momentarily after resetting wifi).
6. Turning off items controlling wireless network in wireless connection properties.
7. Turning off firewall.
Waiting for a savior.
I know this isn't super helpful but I had the same bug you describe on the previous version of carbon. When I updated to the latest it seems to have stopped.
Sent from my GT-p5113 using xda premium
I had similar issue with my aTab Phone 4 and TP-Link TL-WR941ND (OpenWRT)
After disabling WMM capability in the router the problem disappeared!
Change router lease time to "2weeks"
Sent from my GT-I8190N using XDA Premium 4 mobile app
Same issue.
karankahlon said:
It's the same effing stuff people suggest to every wifi glitch out there.
To people who think it's due to the wifi sleep policy: although I've set it to always, why would wifi not resume, after screen is turned on? It's not the wifi that gets disconnected, it's the internet (or the download speed) that stops working.
To people who suggest it's a power saving feature under low battery conditions: Sorry, I've tested it while charging and with full battery.
To people with the above two arguments: Connection to some routers works perfect with the phone. Like when I turn on the hotspot on another phone, the wifi works great. Also, wifi on the other phone from the same source (laptop used as internet access point) works well.
To people who suggest resetting the router or wifi on phone: The internet does start working again, but only for a few minutes. Even if the screen is turned on, the internet may stop working mid-download.
The actual situation is that the phone disconnects from the internet, but keeps showing a connection to wifi. Like I used connectify hotspot to create an access point, and after a few minutes, the phone moved from "connected clients" list to the "previously connected clients", even as the phone showed connected to wifi with even the download arrows blinking, but no internet (or download speed). This only happens with certain sources (of wifi). And other phones may work well with the same source.
I have tried (several times and in different orders and permutations) the following to no effect:
1. Resetting the router.
2. Resetting the wifi on laptop.
3. Resetting the wifi on phone.
4. Restarting the phone and laptop.
5. Static IPs, gateways and DNSs. (Even though the problem was not with connecting to wifi and even internet works momentarily after resetting wifi).
6. Turning off items controlling wireless network in wireless connection properties.
7. Turning off firewall.
Waiting for a savior.
Click to expand...
Click to collapse
Same issue. also using connectify and also tried all things you have described. If you find any solution please let me know.
I had the same problem on my Huawei Honor. You need to set static IP in wifi settings (when connecting to AP, press "show advanced settings").
Mine settings were:
IP adress: 192.168.1.75 (make sure other devices are not connected with this IP)
Gateway: 192.168.1.254 (it could be different. Use the same as you're using to connect to your router)
Network prefix length: 24
DNS 1: 8.8.8.8
DNS 2: 4.4.4.4
No option for static IP in connectify
jopsinas said:
I had the same problem on my Huawei Honor. You need to set static IP in wifi settings (when connecting to AP, press "show advanced settings").
Mine settings were:
IP adress: 192.168.1.75 (make sure other devices are not connected with this IP)
Gateway: 192.168.1.254 (it could be different. Use the same as you're using to connect to your router)
Network prefix length: 24
DNS 1: 8.8.8.8
DNS 2: 4.4.4.4
Click to expand...
Click to collapse
There is no option in connectify for static IP and in USB wifi dongle also there is no option to set static IP.
Help!
---
---
Same issue
karankahlon said:
It's the same effing stuff people suggest to every wifi glitch out there.
To people who think it's due to the wifi sleep policy: although I've set it to always, why would wifi not resume, after screen is turned on? It's not the wifi that gets disconnected, it's the internet (or the download speed) that stops working.
To people who suggest it's a power saving feature under low battery conditions: Sorry, I've tested it while charging and with full battery.
To people with the above two arguments: Connection to some routers works perfect with the phone. Like when I turn on the hotspot on another phone, the wifi works great. Also, wifi on the other phone from the same source (laptop used as internet access point) works well.
To people who suggest resetting the router or wifi on phone: The internet does start working again, but only for a few minutes. Even if the screen is turned on, the internet may stop working mid-download.
The actual situation is that the phone disconnects from the internet, but keeps showing a connection to wifi. Like I used connectify hotspot to create an access point, and after a few minutes, the phone moved from "connected clients" list to the "previously connected clients", even as the phone showed connected to wifi with even the download arrows blinking, but no internet (or download speed). This only happens with certain sources (of wifi). And other phones may work well with the same source.
I have tried (several times and in different orders and permutations) the following to no effect:
1. Resetting the router.
2. Resetting the wifi on laptop.
3. Resetting the wifi on phone.
4. Restarting the phone and laptop.
5. Static IPs, gateways and DNSs. (Even though the problem was not with connecting to wifi and even internet works momentarily after resetting wifi).
6. Turning off items controlling wireless network in wireless connection properties.
7. Turning off firewall.
Waiting for a savior.
Click to expand...
Click to collapse
1. I have had the exact same issue for (atleast) the past 2 years. Have survived by repeatedly turning wifi on and off.
2. I too use connectify. This issue doesnt seem to happen on every wifi connection (just like your case). Even more specifically, it seems to happen ONLY when I connect my phone to the hotspot created via my laptop (connectify).
3. Even when the internet is actually working, some apps do not seem to recognise that(take some time to realize it is working), while others are able to connect instantly. Specifially, whatsapp is unable to send/receive messages for about 1-2 mins, after which I receive a whole bunch of messages at once.
This does not seem to be an issue due to connectify as well. I have tried creating a hotspot from my laptop without using connectify as well, but unfortunately, nothing changed. Further, this does not happen when my phone connects to a hotspot created via connectify by some other pc. The wifi and internet work perfectly fine when connected to a hotspot created via my friends computer.
Further, this problem happens only when a mobile connects to the hotspot. Doesn't occur when another laptop/PC connects (not sure about tablets).
I have looked into every nook and cranny on the internet, explored every forum for any working solution, but have been unsuccessful. In fact, this is the first place where I saw the exact same problem as mine, and was wondering if you have found any solution to it .
karankahlon said:
It's the same effing stuff people suggest to every wifi glitch out there.
To people who think it's due to the wifi sleep policy: although I've set it to always, why would wifi not resume, after screen is turned on? It's not the wifi that gets disconnected, it's the internet (or the download speed) that stops working.
To people who suggest it's a power saving feature under low battery conditions: Sorry, I've tested it while charging and with full battery.
To people with the above two arguments: Connection to some routers works perfect with the phone. Like when I turn on the hotspot on another phone, the wifi works great. Also, wifi on the other phone from the same source (laptop used as internet access point) works well.
To people who suggest resetting the router or wifi on phone: The internet does start working again, but only for a few minutes. Even if the screen is turned on, the internet may stop working mid-download.
The actual situation is that the phone disconnects from the internet, but keeps showing a connection to wifi. Like I used connectify hotspot to create an access point, and after a few minutes, the phone moved from "connected clients" list to the "previously connected clients", even as the phone showed connected to wifi with even the download arrows blinking, but no internet (or download speed). This only happens with certain sources (of wifi). And other phones may work well with the same source.
I have tried (several times and in different orders and permutations) the following to no effect:
1. Resetting the router.
2. Resetting the wifi on laptop.
3. Resetting the wifi on phone.
4. Restarting the phone and laptop.
5. Static IPs, gateways and DNSs. (Even though the problem was not with connecting to wifi and even internet works momentarily after resetting wifi).
6. Turning off items controlling wireless network in wireless connection properties.
7. Turning off firewall.
Waiting for a savior.
Click to expand...
Click to collapse
I'm having the exact same prob on my ZTE Grand x V 970
It started when i had kitkat and i couldnt even "fix it" restarting the wifi, i had to reset the phone in order to have my wifi work for like 2-5 mins and then stops recieving data, tried to reconnect and stays on turning on wifi.. Now i changed to the stock Rom and the problem is still there but at least now i can "fix it" restarting the wifi connection until certain point.
Issue sharing internet with Connectify from PC
Go to:
Control Panel\Network and Internet\Network and Sharing Center
On the left column, click on CHANGE ADAPTER SETTINGS.
You should be in: Control Panel\Network and Internet\Network Connections by now.
Then click on: Microsoft Virtual Miniport Adapter and click on Properties, then click on the 'Configure' button in the 'Networking' tab. From this window, go to the 'Power Management' tab and uncheck 'Allow the computer to turn off this device to save power'.
This works for me. Try this out
If this doesn't work further, you can try out mHotspot for the same purpose.
I've had the same issue, with the wifi saying it's connected even though it isn't.
This thread is 4 years old and this issue still hasn't been fixed. What a shame.
Same issue here on OnePlus 3 even after factory reset.
I have this same problem after the security patch Mid March to Jan 1, 2019. The WIFI doesn't show in the top status bar, but toggling wifi off/on fixes it till the next overnight. I did make one change to my wireless about that same time and that was moving the min connect speed from 6Mbps to 12Mbps to help with bandwidth issues being cause by devices using low speeds and having several SSID broadcast. My S7 and Tab A both work fine - so I think it was something in the security patch.

[Q] Wifi and Mobile data

I have Nexus 5 for over a week and waiting for case and screen protector. I left the plastic piece stay on the phone until the day before yesterday. I love the feeling of touch screen without any film or protector on it. I am learning this device.
I have router in my office powered but not working anymore, therefore there is wifi always on but not working anymore. Everyday in the morning, when I am in my office, the phone will detect that wifi auto, of course there is no signal. My mobile data is on all hte time. I have to turnoff wifi from the phone, otherwise I can not, for example, surf internet and check email. In the other words, no internet connection even mobile data is on.
So my question is: why the phone can not pick up mobile data automatically even there is a wifi? I was scared when i first had this problem because I thought my phone is not working. Is there any setting I can try to let the phone pickup signal from either wifi or mobile data automatically?
I'm interested also. Nexus 5 has a difficult time negotiating a signal when the signal is weak. At home, I get a higher powered signal on 2G so I keep it there. Today I noticed "no signal" and emergency calls message most of the day. (hubby's iPhone 4s is on the same service and he's getting the signal). I turned off Wi-Fi (which works perfectly, btw ) and phone signal connected. Treated it several times. Sounds like a hardware defect.
wolfca said:
I have router in my office powered but not working anymore, therefore there is wifi always on but not working anymore. Everyday in the morning, when I am in my office, the phone will detect that wifi auto, of course there is no signal. My mobile data is on all hte time. I have to turnoff wifi from the phone, otherwise I can not, for example, surf internet and check email. In the other words, no internet connection even mobile data is on.
So my question is: why the phone can not pick up mobile data automatically even there is a wifi? I was scared when i first had this problem because I thought my phone is not working. Is there any setting I can try to let the phone pickup signal from either wifi or mobile data automatically?
Click to expand...
Click to collapse
Your wording makes the question a little confusing, but I think you are saying your office router is turned on and available for WiFi connections, but has no internet connection itself to pass through to your phone.
Your phone connects to that WiFi for data, but can't reach the Net through the router. Meanwhile, you could get data through the phone data plan, but that does not work unless you turn off WiFi.
This normal. The phone is designed to use WiFi for data if a connection is available that you have authorized the phone to make. It won't use the phone data plan if connected to the WiFi, as you see. It cannot tell that the WiFi router is not connected to the Net.
I suggest you go into WiFi settings, click on the "ghostly" WiFi entry and tell the phone to forget that connection. From then on, the phone won't connect to that router and will use phone data plan.
What you would prefer would be for the phone to use its data plan as a fallback option, in case it gets hooked up to a WiFi network with no internet access, like at your work. Would be nice as an option, but not the way things work currently.
Sent from my Nexus 5 using Tapatalk
wolfca said:
So my question is: why the phone can not pick up mobile data automatically even there is a wifi?
Click to expand...
Click to collapse
To prevent overage for users that may have limited data plan, the device will always try to use WiFi when enabled. If it can't connect to a WiFi network, it will look for the mobile data if enabled.
wolfca said:
Is there any setting I can try to let the phone pickup signal from either wifi or mobile data automatically?
Click to expand...
Click to collapse
In your case, since WiFi is "available", there is no setting on the stock ROM that will tell the device to connect to mobile data instead. Think about it this way - your phone is connected to the LAN using the WiFi network. It can reach the gateway, and has a valid IP. It doesn't care about whether it has WAN connectivity or not. So, it assumes that you are connected, and have connectivity.
You could look for apps on the play store that will actually check for WAN connectivity and if not available, disable WiFi (so that mobile data is used instead)
But, the part that I don't understand is this: If you don't have WiFi available, why do you even enable it? Turn WiFi off (disable wifi scanning in advanced settings of WiFi as well), and let mobile data take over instead. Or do you need WiFi elsewhere (say, at home)? If so, there are apps like Tasker that will let you set up profiles to enable WiFi when you are at home, and disable it when you are at office or other locations.
Thanks all for your very helpful reply. Sorry for my poor written English.
My office router does not function properly and I am to lazy to power it off, so my phone still can detect it but of course there no internet access from the router.
I now know I just need turn off wifi from phone and the phone will pickup mobile data auto.

Location based WiFi-what's that about?

On most android phones you can stop them from connecting to open WiFi, so it only connects to your home WiFi and other predefined locations.
The Z3 has an option on the Stamina page:
Location based WiFi- WiFi activated automatically when in range of a saved WiFi network.
I've played with this but i don't get it. If that's activated and I've turned WiFi off it doesn't seem to turn WiFi on, and if WiFi is turned on it'll connect anyway so this option is redundant.
The power policy makes no difference, and I've added my WiFi point to the list.
Maybe you need to turn on "background scanning" in advanced settings which checks for WiFi in intervals even when WiFi set to off.
If you leave wifi enabled the feature will automatically turn it off when you are not near the location of one of your saved networks, and then back on when you are again near that location. Don't manually turn off wifi, the feature won't turn it back on in that state.
I was wondering the same thing. I'll test this out today.
The description should say that WiFi will turn off when not in range of saved networks.
Sony makes it sound like we need to have WiFi off, and it'll turn back on automatically when in range.
Sent from my D6616 using XDA Free mobile app
shilent said:
The description should say that WiFi will turn off when not in range of saved networks.
Sony makes it sound like we need to have WiFi off, and it'll turn back on automatically when in range.
Click to expand...
Click to collapse
Exactly, especially when another option, on the advanced wifi option page, says:
"Scanning always available: Let google's location service and other apps scan for networks, even when wi-fi is turned off"
because it gives the impression you can enable that, turn wifi off, but use the "location based" option to override your wifi disable to turn it back on again.
Scanning always available is a battery killer.
What I have noticed is that my Wi-Fi turns off when I leave my residence to work and stays off the entire time. It doesn't turn on automatically when you come home until something runs a scan of your location. I believe that is how it works and when it senses that you're near where your WiFi is it will turn it on automatically.

Wifi/data problem

My problem is when I leave my house and turn on Data my phone searches for nearby wifi, this is fine if I am able to connect.
On some wifi they are so slow the phone will not connect but then I cant browse or do anything that requires a connection as somehow the phone refuses to use data unless I disable the wifi connection.
This is most annoying as I then forget to turn wifi back on when I get home costing me a fortune

Categories

Resources