App that alternates WiFi/data automatically? - Sony Xperia M

Hello,I'm looking for an app that:
1.Enables WiFi when there's a network available (based on location or checking periodically every hour for example) and disables data the moment it connects.
2.Enables Data the moment I lose WiFi connection and automatically disables WiFi.
Simple,but I just can't find such an app.Most of the just switch on WiFi using location based rules but also leave Data ON.
Looking to maximize battery life without having to keep switching WiFi/Data ON or OFF myself.
N.
Not sent from my Xperia.

Im pretty sure you can do that with tasker. Its a really cool app, you should try it out. Though it is quite complicated and not for beginners, good luck

OK,thanks.Is there any guide on how to get it to do what I describe in the first post?
Not sent from my Xperia.

No-one?
Not sent from my Xperia.

Related

Desire Network Connection

Hi
i would like to know if its possible to turn off the gprs connection and only use it when weather app needs it and then switch it off again
i have seen a few settings but cant understand them properly
one is always on and the other is mobile network(or somthing simular).
i have turned always on to off and left the other on.
also the pre installed weather app doesnt save my setting to update automatically, is this a bug, manual update doesnt work at all unless using wifi.
thanks
anyone messed around with my issue
Temporary fix. I don't even have my Desire yet but I've seen on pretty much all Android phones a widget which will let you turn on and off each of the radio's (WiFi, Bluetooth, GPS... etc.) by hitting the corresponding button, much faster than going into settings and turning them all off manually...

Does wifi kill battery faster?

Does using wifi drain the battery? Is it better than using the actual 3G or 4G?
Sent from my HTC Vision using XDA App
I'm sure someone has a way more technical answer but I would think not. I have no issues with drainage on wifi, as on 2g its on the network constantly and not continually searching for towers.
Sent from my HTC Vision using XDA App
jeremyt727 said:
Does using wifi drain the battery? Is it better than using the actual 3G or 4G?
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
If you are connected to a wifi network, it saved much more battery than using 3 or 4g. However, if you leave wifi on but don't connect to a network, it will drain battery
Sent from a truly Epic phone and a transparent XDA app
ok cool thanks alot man. Idk when I'm home I just like using wifi better, correct me if I'm wrong but it seems faster. Thanks again
Sent from my HTC Vision using XDA App
Turning on anything more than necessary will kill your battery faster. Not always by a lot but everything does and wifi wouldn't always be faster because it depends on the wifi's local area connection. Best way to save battery is to go in settings/applications/manage applications the force close anything you don't need running. Make sure you know what it is you're closing or you could run into some problems. If you end up killing a system app and it won't reopen itself, its nothing a reboot won't fix.
dietotherhythm said:
Turning on anything more than necessary will kill your battery faster. Not always by a lot but everything does and wifi wouldn't always be faster because it depends on the wifi's local area connection. Best way to save battery is to go in settings/applications/manage applications the force close anything you don't need running. Make sure you know what it is you're closing or you could run into some problems. If you end up killing a system app and it won't reopen itself, its nothing a reboot won't fix.
Click to expand...
Click to collapse
DO NOT DO THIS.
Android has its own automatic task management system, and its best if you just let it do what it does best: manage on its own.
Sent from my T-Mobile G2 running Cyanogenmod.
Well gee I do it all the time and it works fine. If it wasn't intended to be used I don't think it would come without root permissions and anyone who isn't an idiot will realize that force closing android system will cause problems. But if you wanna suggest a task manager that doesn't actually kill apps and adds some bloat ware, be my guest.
dietotherhythm said:
Well gee I do it all the time and it works fine. If it wasn't intended to be used I don't think it would come without root permissions and anyone who isn't an idiot will realize that force closing android system will cause problems. But if you wanna suggest a task manager that doesn't actually kill apps and adds some bloat ware, be my guest.
Click to expand...
Click to collapse
He's not going to recommend another task manager/killer, because Android already does it by itself. Plus, killing a task that is not finished just causes it to respawn. Task killers are unnecessary, and may actually hurt performance and battery life.
Its explained here: http://forum.xda-developers.com/showthread.php?t=849974&highlight=task+killer
I agree that it's best to let Android clean it's own house normally, however I'm getting a little bit jarred off with certain apps starting themselves up at boot-time.
Paypal app for some reason has installed a service on my phone, despite the fact I've never even logged into it and I can't see why it would need a service running all the time.
Also since the latest Google Maps upgrade there seems to be something under my running tasks called Rate Places. I've not used the check-in service on GMaps at all, nor will I ever.
As well as this, since I've been running a modded CM ROM (SparksMod Extra Hot Sauce) then I constantly have Wi-Fi Calling running - again this is useless to me cos I'm not on TMob US.
Any suggestions for a decent app which can stop all these things running before they ever start, and keep them stopped?
setspeed said:
I agree that it's best to let Android clean it's own house normally, however I'm getting a little bit jarred off with certain apps starting themselves up at boot-time.
Paypal app for some reason has installed a service on my phone, despite the fact I've never even logged into it and I can't see why it would need a service running all the time.
Also since the latest Google Maps upgrade there seems to be something under my running tasks called Rate Places. I've not used the check-in service on GMaps at all, nor will I ever.
As well as this, since I've been running a modded CM ROM (SparksMod Extra Hot Sauce) then I constantly have Wi-Fi Calling running - again this is useless to me cos I'm not on TMob US.
Any suggestions for a decent app which can stop all these things running before they ever start, and keep them stopped?
Click to expand...
Click to collapse
Try "Autorun Manager"
I use it, but SOME apps will auto-restart. I think you need the Pay version of Autorun Manager to prevent those from re-launching.
I use the free version, and it gets rid of some of the problem.
WiFi is definitely causing massive battery drain on my G2 with CM6.1.1. I leave it on at night, and if I have 50% when I go to sleep, I'm down to 3% in the morning. Without doing anything.
I'm not quite sure why this is happening, but it is, and it sucks. I can't go back on 3G/4G right now because I'm at just about 4.8GB, and I don't want to go over my 5GB soft cap.
I wish I knew why WiFi was causing such battery drain...
Do you have anything updating automatically (Email, facebook, etc)? That would be my best guess. I leave wifi on when I'm at home and it isn't that bad at all. Also, I'm sure theres an app out there to let you see what is using the wifi for updates and such. I just don't know of one off the top of my head. I have an app like that for 3G data but it doesn't do wifi.
I just went through every one of my apps to make sure that nothing is set to sync, except Google Voice and Email. My battery is at 50% right now, so we'll see what it's at tomorrow morning.
As you can see from the screenshot, WiFi is using quite a bit of battery. I'm not sure why, but hopefully soon (after some testing) I'll have my answer.
Sent from my HTC Vision using Tapatalk
Yup, 2 nights in a row, my battery has gone from 40% to dead, simply from sitting on my night stand. I wonder if this is why T-Mobile discontinued the G2... because they knew it would have battery issues, and they didn't want to deal with serving warranties? Hmmm...
Its a bit of a leap of logic to link your personal battery issue with T-Mob discontinuing the phone. T-Mob has a good number of Android phones coming out in the near future, with T-Mob really ramping up their support of Android devices. So its been very reasonably speculated that they are discontinuing the G2 in order to make room in their lineup (and stockrooms, etc.) for the new phones.
I get a full day of moderate usage on my Vision, and can get close to 2 days with low usage. That's very typical for a modern smartphone. I usually get in the range of 2-3% battery drain per hour when the phone is idle. And that's with WiFi always on (even when not connected to a WiFi network) and auto sync of Gmail and HTC stock and weather apps. You haven't mentioned how long "overnight" is exactly, but I'll assume 8 hours or so. So your phone draining from 40% to dead overnight seems unusual. WiFi typically uses less battery then the cell data network, when WiFi is available. I suspect there is something else going on, besides just being on WiFi. If the cell reception is dodgey in your area (or fringe 3G reception), this might run the battery down (even if you are on WiFi) as the phone is constantly searching for signal. Or your radio may be mismatched to your custom ROM. Or you may just have a bad battery. Also, was the battery drain any different when you were on the stock or other custom ROMs? I personally haven't witnessed the battery drain to be significantly different across the ROMs I've tried. But that seems to vary, as there often seem to be people complaining about this or that ROM causing more battery drain.
The reason I thought it might be a hardware defect issue is that my wife and I got G2's at the same time. I rooted mine and have been running CM6.1.1 for a few months now, and my wife has kept hers stock. However, the battery issue hit both our phones at almost the exact same time.
It sounds ridiculous, but conspiracy theories are fun to play with. The fact that I've been rooted so long, and it JUST happened weirds me out. Add my wife's phone to the equation, and it's even weirder. I kept my phone on WiFi and 2G networks only last night (yeah, about 8 hours), and the exact same thing happened.
Maybe I should just get a new battery, I don't know. But I do religiously delete apps I don't use and make sure the ones I do use are syncing as minimally as possible.

[Q] Best APP to turn on WIFI based on location

Does anyone know what app is the best for turning on WIFI based on your location?
I don't know about best, but I've been playing around lately with Profile Valet. It's free, and you can setup different profiles using all kinds of different qualifications. You can set it up using locations as well.
I'm sure someone will suggest Tasker but it would be overkill if this is all you're wanting to do. I used to use Wapdroid for turning wifi on and off and it worked really well for me.
Totally gonna give Profile Valet a try.
Locale.....
here is a question:
why have an app/service running in the background, with access to (i.e. enabling) GPS for location, to do what you can do in a second by using the power control widgets?
100% of the time I turn wifi on and off by location, as you want the app to do. except i do it myself, all i have to do is drop my notification bar down and press one button...simple, and nothing running in the background or gps eating away at your battery
profile valet has a lot of potential but it didn't work that well for me.
I have not used it in a while but it may have gotten better
Cosign Max....
Sent from my HTC Evo
Max_Pain said:
why have an app/service running in the background, with access to (i.e. enabling) GPS for location, to do what you can do in a second by using the power control widgets?
Click to expand...
Click to collapse
Because I don't want to do it myself. When I walk into my office (which has crappy Sprint coverage and a locked down WiFi network) my WiFi shuts off, my roaming kicks over to Verizon, and my ringer drops to vibrate. The moment I walk out of my office my ringer comes back to life, my WiFi restores, and I jump back on the Sprint network.
Yes, I could do that myself with a few clicks... but why bother when a program exists which can do it for me.
I've used Y5 for quite a while. It's free in the market, does exactly what you want, and it works very well.

Please help: juicedefender messed up my desire

Hi,
can anyone please help me? I recently downloaded and used JuiceDefender on my Desire. I configured a setting that allows the phone to learn what are the Wifi networks that I like to connect to, based on location. I soon noticed that the phone randomely reboots so I uninstalled this application. Well, I completely lost control of my Wifi connection. Even if I turn it off in Android settings, the Wifi just starts by itself and starts scanning for networks, which completely drains my battery. I installed the application again and reversed the location wifi setting but it did not help.
I also did a backup then wiped up my phone, but the Wifi still starts by itself. Is there any solution to this?
Thank you!
hi,
did a backup then wiped up my phone,
Click to expand...
Click to collapse
and the did you restore your backup?? if so i woulfd advice to clear data juice defendre and maybe mail to dev'app
thank you for your answer.
First I uninstalled juicedefender. after seeing that wifi still gets connected, i backed up, i wiped all data on the phone and restored the back up, but without juicedefender (it was not included in the backup). As for the email to the developers, I did that, but I got a response like that: "I don;t think this is possible. Please install our beta application and enjoy." How helpful of them!
Some suggestions
I would be surprised if any app could reboot the phone, even if it crashed.
Do you use tasker or locale? They can start up the wifi.
You could try org.wahtod.wififixer
You could also use something like com.mapeapps.networkcounter to check what is using the wifi. You'll have to reboot after installing it to reset the counters, but then, if it locks on to a wifi straight away, you could see what's using the connection, and maybe work out what's starting it up?
Thank you, I will try what you said. Sometimes the Wifi is just starting, but sometimes it also starts when I open any application that requires an internet connection, even if my data connection is already on. I will come back to report on what you suggested. Thanks again!
I forgot to say that I am not using a tasker. I do have enabled the location services based on network, but I have always had that before, and if the wifi was disconnected in the android settings, then it stayed off. Now it just won;t stay off. The thing is that I don;'t even need wifi, I have a good data plan. But the damn wifi just starts by itself, scanning for networks all the time, draining my battery and interrupting my regular data connection. I am so frustrated! I never had problems with my Desire for one year, and now, after installing this JuideDefender, problems are coming in.
Ok there are a couple of things:
a) If your Wifi is still broken after you uninstalled JD it is most likely not JD who was / is the culprit. You even wiped, so how should JD do this?
b) JD does not turn Wifi back on when you manually turn it off (I am not 100% sure what happens during the training phase, while JD learns you Wifi-Locations, because in these 1-3 days JD might turn Wifi on in "random" locations to enhance the algorithm)
What does the log in JD say (anything about turning Wifi on?)?
Hello,
the JD log says: WIFI turned on by user.
Which of course I have not done. I think my phone is haunted. Leaving JD aside (even if this problem started only after I started to use JD), the problem still exists: my phone turns its WIFI connection by itself, even if I don't want that!

[Q] WLAN_RX_WAKE wakelock preventing GNex from entering deep sleep

Really odd problem here - as of a couple days ago, everything was working perfectly with my galaxy nexus. I decided to jump over to CM10 (was on codename android, IIRC), right after I think there were some new commits to AOSP.
From here on out, my phone would never enter deep sleep when connected to wifi. Any wifi hotspot - the ones I've been using, a hotspot I created from my desktop - the icon would show the phone constant receiving data via wifi. Using better battery stats, over about 5 hours on my desk, 4.5hrs were spent with a WLAN_RX_WAKE kernel wakelock with my phone sitting at 350MHz instead of deep sleep for that time.
I tried a bunch of different kernels (stock CM10, franco, imoseyon, etc) both new and old versions, but the problem was still there. I tried clean flashing a rom, and only installing better battery stats. Same thing with all kernels.
Factory restored google stock images to BOTH ICS and JB. I still have the problem. Tried disabling google location services. No dice. Tried a couple basebands, but I'm pretty sure that only affects cell/data performance, right?
I honestly have no idea what is going on. I've been on this hotspot (campus wifi) for months now without a problem, and now this. Some threads say that this is caused by DHCP requests from the router, but why would I have not seen this until now? My idle drain was at about 1-2% per hour before this, now it is close to 10-15%.
shadvich said:
Really odd problem here - as of a couple days ago, everything was working perfectly with my galaxy nexus. I decided to jump over to CM10 (was on codename android, IIRC), right after I think there were some new commits to AOSP.
From here on out, my phone would never enter deep sleep when connected to wifi. Any wifi hotspot - the ones I've been using, a hotspot I created from my desktop - the icon would show the phone constant receiving data via wifi. Using better battery stats, over about 5 hours on my desk, 4.5hrs were spent with a WLAN_RX_WAKE kernel wakelock with my phone sitting at 350MHz instead of deep sleep for that time.
I tried a bunch of different kernels (stock CM10, franco, imoseyon, etc) both new and old versions, but the problem was still there. I tried clean flashing a rom, and only installing better battery stats. Same thing with all kernels.
Factory restored google stock images to BOTH ICS and JB. I still have the problem. Tried disabling google location services. No dice. Tried a couple basebands, but I'm pretty sure that only affects cell/data performance, right?
I honestly have no idea what is going on. I've been on this hotspot (campus wifi) for months now without a problem, and now this. Some threads say that this is caused by DHCP requests from the router, but why would I have not seen this until now? My idle drain was at about 1-2% per hour before this, now it is close to 10-15%.
Click to expand...
Click to collapse
This is literally the EXACT SAME problem I'm having...I wish someone could properly explain why this is happening and how to fix it.
Sent from my Galaxy Nexus using xda app-developers app
Not sure if you've tried this and it helps but maybe you can try Network Log or Shark from the store to diagnose this?
Network Log doesn't show up with anything, so the wakelock shouldn't be caused by a rogue app.
Shark, on the other hand, after about 10 seconds of logging, netted me about 300 DHCPv6 'solicit XID' requests. There a bunch of different sources from these requests, they just seem to be other devices on the network pinging my phone to see if it's a DHCPv6 server...?
I've seen some suggestions on other forums to mess around with the router settings, which I can't do because it's campus internet.
Since you've tinkered with rom/kernels etc on phone without any seeming change, it's feasible that there's been some change recently on the other side of the equation namely the network settings of your campus wifi? Maybe your University's tech department has implemented something new etc? Have you tried asking others with wifi enabled phones if they are experiencing this as well?
Found this here (pretty sure you've come across this if you've been googling abt this issue but posting anyways)
"Another more elaborate solution if you rely on that network a lot, is to purchase a wireless bridge or gaming adapter and connect it to your apartment wifi and then connect your own wifi router to that. Then the gaming adapter would get the dhcp IP from your apartment (so who cares if it is renewing it constantly) and your router would treat the connection just as if you were connected directly to an internet connection. Then configure your router for static IP addresses or if your router does not cause issues with DHCP then you don't need static IPs."
from http://rootzwiki.com/topic/16134-kernel-wakelock-wlan-rx-wake/
I know I had an issue with some wlan rx wakelock thing last year but I cannot for the life of me remember how I got rid of it or what changed
Hmm, seems like an okay solution but my friend's devices don't seem to show the same symptom, and since I roam campus alot, a wifi extender wouldn't be ideal.
Bump. Any other ideas?
Sent from my Galaxy Nexus using xda app-developers app
I am seriously ripping my hair out from this goddamn wakelock ****.
I wake up at 9am and have to charge my phone by 4pm because it's at 16% with 40 minutes of screen on time. Seriously? This is a JOKE.
I've checked with BetterBatteryStats and CPU Spy. Both confirm the phone keeps sitting at 350MHz when it's supposed to be sleeping, as well as wlan_rx_wake keeping the phone awake.
I've set my phone to receive a static IP from my router (DIR-655) but it doesn't help. I really don't know WHAT to do. I've downloaded shark to my phone, sniffed packets, but haven't been able to get anything useful out of it since there is a LOT to sift through (unless you know what you're looking for - which I don't).
This is by far the worst bug/issue I have ever encountered with my phone and it is seriously getting on my nerves. I will be forever greatful to anyone who can help me pinpoint the issue and make it stop.
Also, i REFUSE to "go buy a new router" as it's bull****. This is a bug people experience only sometimes it seems and NO ONE has a fix for it. I read somewhere about a fix being implemented in some kernels but they were for other phones, never found anything like it for the GNex. If anyone knows anything about a fix like that, please show me the way.
I already checked for rogue apps, there were none keeping wifi awake. I've even tried with a totally stock, newly flashed phone with stock kernel and everything. NO extra apps installed except shark, CPU spy and betterbatterystats sideloaded. I didn't even input my GMail to stop the syncing. It STILL KEPT MY GODDAMN PHONE AWAKE.
I am SERIOUSLY desperate. Considering just selling my phone and opting for something else if this continues, it totally cripples everything.
/rant over
turn on WiFi, Bluetooth, and GPS, for about 30seconds, then turn them off. put your phone to sleep, then check if you're going into deep sleep. CPU spy is a good app to check if your hitting deep sleep.
Change wireless network encryption? Wpa2, tkip+aes, aes only, tkip only? Wpa?
Change wifi channel?
Edit: scratch that. Try disabling 5ghz band.
Sent from my i9250
I had a similar issue, it turned out it was Dropbox LANSync in my home LAN. I used an experimental forum build on my PC, so it could be this, but in the end I turned LANSync off, since Android doesn't make use of it anyway.
So try this if you have Dropbox running on your network clients.
simms22 said:
turn on WiFi, Bluetooth, and GPS, for about 30seconds, then turn them off. put your phone to sleep, then check if you're going into deep sleep. CPU spy is a good app to check if your hitting deep sleep.
Click to expand...
Click to collapse
At the moment I am fiddling with putting my router into different security configurations, per the quote below. But I will give your idea a try as well.
bk201doesntexist said:
Change wireless network encryption? Wpa2, tkip+aes, aes only, tkip only? Wpa?
Change wifi channel?
Edit: scratch that. Try disabling 5ghz band.
Sent from my i9250
Click to expand...
Click to collapse
5GHz band? Where do I disable this, the phone or the router? My router chooses channel automatically and is set to Auto 20MHz/40MHz channel width.
madd0g said:
I had a similar issue, it turned out it was Dropbox LANSync in my home LAN. I used an experimental forum build on my PC, so it could be this, but in the end I turned LANSync off, since Android doesn't make use of it anyway.
So try this if you have Dropbox running on your network clients.
Click to expand...
Click to collapse
I don't have DropBox on my phone or on any of my PC's
A quick update, I just tried all the suggestions in the quotes in my previous post but to no avail, still getting the wake locks. I'm seriously going crazy.
Turning wifi off did let the phone sleep, but that was expected as the wake lock is related to wifi. Nothing else has worked. NOTHING.
Sent from my Galaxy Nexus using xda app-developers app
EddieN said:
A quick update, I just tried all the suggestions in the quotes in my previous post but to no avail, still getting the wake locks. I'm seriously going crazy.
Turning wifi off did let the phone sleep, but that was expected as the wake lock is related to wifi. Nothing else has worked. NOTHING.
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
This issue appeared again for me, it obviously also helps to disable the NETBIOS on your Windows PC network adapter. There are guides for that online. Also get the "Network Log" app in the Play Store, it shows the traffic so you can see which one's are for the kernel (wlan_rx_wake is a kernel wakelock).
Also uPNP feature in router can cause all kind of weird behavior. Better block it from router's firewall.
Sent from my slimbeaned GNex
What baffles me the most is that all of this shouldn't be needed. I shouldn't have to disable netbios and do things to OTHER devices just so my phone sleeps. This is a jellybean issue imo, I never had these problems on ICS.
The experiments continue, updates incoming.
Sent from my Galaxy Nexus using xda app-developers app
I also suspect the major issue was that my wifi channel was the same as the ones around me. When I changed it, the wlan wakelocks went down significantly.
Sent from my Galaxy Nexus using Tapatalk 2
EddieN said:
At the moment I am fiddling with putting my router into different security configurations, per the quote below. But I will give your idea a try as well.
5GHz band? Where do I disable this, the phone or the router? My router chooses channel automatically and is set to Auto 20MHz/40MHz channel width.
I don't have DropBox on my phone or on any of my PC's
Click to expand...
Click to collapse
5 Ghz band is disabled when you enter Wi - Fi - advanced - Wi - Fi frequency band ... It's set to auto by default, you try either 2.4 or 5 ghz on manual and check if that helps ( incase you didnt already )
Does anyone have any news about this issue? I have the same problem and I can't find the solution. I made several test without any good results.
lkeops said:
Does anyone have any news about this issue? I have the same problem and I can't find the solution. I made several test without any good results.
Click to expand...
Click to collapse
Change the Wifi channel.
Sent from my Galaxy Nexus using Tapatalk 2

Categories

Resources