Script to disable 3G unless manually launching Opera? - General Questions and Answers

I, like many others, have my device setup to check my email for me every half-hour. Originally, this killed my battery because the connection wouldn't drop. That was fixed with the advanced config tool (set the time-out to three minutes).
Now I've a new question. I'm almost positive someone has already come up with this, but evidently my forum searching skills aren't up to snuff, because I can't seem to find anything.
I've enabled the 3G switch in the Comm Manager and, unless I'm specifically using it for web surfing, I leave it off. (Checking email works fine on edge.)
What I'm looking for is a script that automatically enables 3G when I launch Opera, YouTube, ICS or any other app that I would personally be interacting with and then disable 3G again once I close that app.

Hi,
not exactly what you requested but ...
Chainfire is developing an App that will do this and many more
http://forum.xda-developers.com/showthread.php?t=478519
Just be patience like i am and everything will be fine
regards

Related

GPRS under control. is it possible?

Hi,
when the wifi signal is lost or activesync is dsconnected, my HTC TouchPro automatically tries to switch to GPRS connection. like when i start browser or messenger application it turns GPRS by default.
My question is: have anybody seen the application or tweak that would show the dialogue window BEFORE the gprs connection established, something like
"application XXX tries to use GPRS connection. and two buttons: Allow|Deny"
that's actually all we need to control GPRS expences, especially when in roaming. (yes, i know about "no data in roaming" app). sometimes it goes like this: you're sure you're online using wifi, and browse or download a film or music. BUT, in the middle of the process the wifi connection is lost, but you didn't notice it, the device switched to GPRS automatically without notice and questions, so the rest of your download becomes golden for you.
if there were such an app with a simple two-buttons-dialogue, life would be easier for all of us... is there?
I have been dreaming for the same thing for like years
actually i had the same problem,
i was browsing comfortably using wifi, but unknown to me, when the signal got interrupted, it switched to GPRS...
actually we would know if we look at the icon, but it's absurd to look at the icon every once in a while...
so, my solution was... to call up the provider, and have them terminate the GPRS service.
it might not serve you any good, since you probably still need the option to be able to go online when there's no wifi, but it served my purpose really well.
So, as i can see, it's not just my whim - it's really necessary add-on. are here some advanced members, coders who are able to solve it? afaik, this feature is not available in winmobile itself, but somehow implemented by Nokia, for example.
Got IT!
guys,
i found the solution. it appears much easier than i expected: just check the
start/settings/sounds and notifications/notifications - connection established. [i have localized WM version, menu strings in english version may vary from my translation. so, just find something close by meaning]
that's it!
good luck.
Yes, I always set it like that so I know it connects with GPRS/3G but I won't still ask me if I want to connect or not, the notification is only good way to try to disconnect it quickly... if I am the one using the phone but if someone else is using it, it's just worthless.

[REQ] A Better Solution for Data Auto-Disconnect... with Peak Time/Push Mail

Hi folks
I've searched around the forums and have seen a couple of solutions out there for automatically terminating data connections (Bandswitch, WMLongLife, the registry tweak) but each seems to lack some of what I need and do a lot that I don't need.
Here's the lowdown:
- I've already tweaked the Comm Manager to add the 3G on/off switch so I don't need something that messes with that
- I use push email for business so I need the data connection to stay on during the "peak times" that I've set in Activesync (for me, that's 8am-11pm)
- Outside of peak times, I've got the phone checking email every hour. Right now, it seems to be leaving the connection on afterward.
- I want to keep the automatic updates for HTC Sense's weather and stock tabs. Not every 5 minutes, of course, but at least a couple of times a day. Also tends to leave the connection going when used outside peak hours.
As I understand it, the registry tweak won't work for the Sense tabs. Bandswitch and WMLongLife mess with the 3G radio and, as far as I can tell, don't let you set a timeframe (re: the latter - I suppose when you've got push mail going it pings the Exchange server regularly so in theory it shouldn't consider the connection idle, but why mess with it?)
So, in short, anyone got a solution that could switch off an idle data connection outside of the peak times set in Activesync?
If you just want to kill connections during certain times (ie, night time) try G-Profile. I have it set to kill data connections during the night, works fine for me although I am using a new beta version which is available from their site.
Looks interesting but reading through the manual it looks as if you can only set a profile to disable the data connection during certain hours. I'd like to leave the data available, just switch on auto-disconnect.
Plus, again, there's a lot of extra stuff in there that's really not necessary. I'm looking for something more lightweight...
I haven't tried it, but you might want to take a look at CommMgrPro.
It's also from the creator of Bandswitch.
PhoneAlarm can do this.
I had PhoneAlarm installed on my previous phone. True, it can do this.
But again, it's like using a tank to kill a fly. Sam with CommMgrPro.
Is there no lightweight solution?
+1 for this. It has to be possible, everyone just seems to lump the functionality in with a load of other stuff I'm not interested in.
Up, I'm looking for this also
+1
This kind of app is missing...
SO.... last night I left my charging cable at the office and I only had around 20% of the battery left at 11:00pm. For some reason, the thing kept opening the data channel even though it was outside of "peak" hours for push! I had to reset and turn manually turn off all data... couldn't have the phone die overnight as it's my alarm clock!
Any ideas here?
DialUp Enabler Disabler v06
What about this one
http://forum.xda-developers.com/showthread.php?t=610657

[Q] Switch Wifi and 3G according to location?

Hey there, I'm looking for a little app on my Froyo that will turn on the WiFi and disable the 3G as soon as I reach my home (for example) and when I move outside again, that it'll disable the WiFi and enable the 3G.
Whether it's done by GPS or done simply by noticing if the WiFi signal is available, I don't mind. Does anyone have a clue about this?
I'm not sure if either can do it since I've yet to use them, but you may want to look into two programs, one called "Tasker" the other "Locale"
Both have the ability to execute location based tasks.
I've used both Tasker and Setting Profiles to accomplish this. Tasker is very powerful, but a bit fiddly to get working correctly.
SP is simpler, and works very well. The jury is still out.
There are a few apps that will do that like tasker and locale, but for my needs I use setting profiles.
Y5
Y5 do it great. remembers WIFI location acording to cell info (doesn't waist battery for GPS) and turn on and of.
only bug in my eyes it that in order to shut down WIFI on a remembered location, you need to disable app or forget location.
Thanks so far for the replies! Right now I'm trying Y5. The rest doesn't really work for me. I've tried Tasker, but no... then I've bought "Setting Profiles" as it seemed to be promising, but it doesn't recognize the places where I'm at. Both through GPS as well as cell towers... it knows where I am, but doesn't change my profile. Big pity!
So, now I'm trying Y5. Only down side is that so far none of the programs has the ability to disconnect the 3G upon activating WiFi.
akito said:
Thanks so far for the replies! Right now I'm trying Y5. The rest doesn't really work for me. I've tried Tasker, but no... then I've bought "Setting Profiles" as it seemed to be promising, but it doesn't recognize the places where I'm at. Both through GPS as well as cell towers... it knows where I am, but doesn't change my profile. Big pity!
So, now I'm trying Y5. Only down side is that so far none of the programs has the ability to disconnect the 3G upon activating WiFi.
Click to expand...
Click to collapse
i think it does!
at least in HTC DESIRE it turn 3G off
Locale can do the job. For example, you can set 3 situations.
Set 'At Home' Situation - Condition: Location plug in(any good location plug in)
- Settings: Locale variable plug-in, add, type 'Home', True.
Set at Defaults - Add Locale variable, add Home = False
Add Wifi - Off
Add 3G - ON
Set Wifi - Conditions: Home = True
Settings: Wifi on
3G off
For my case, I've added Appli Detection condition for the Wifi situation where it detect my browser, etc and perform the wifi on. Hope this helps. IMO, Locale does best and is simple.
I use Tasker to do exactly what you ask.
When I get home, Wifi turns on, 3G turns off. And vice versa when I leave.
Same when I get to work.
I do both of these without the need for GPS or even cell tower location..it's based on when I'm near my home wireless network.
Also turns off wifi, 3G and screen rotation when I'm in bed.
And then makes me breakfast in the morning (well, not quite, but it's almost that good! )
Okay guys, I have definitly uninstalled Setting Profiles. I can't seem to rely properly on it. One time it works, the other time it doesn't. So, I simply don't want it anymore
Now I'm trying Tasker, seems promising. I have downloaded APNDroid next to it, as Tasker was notifying me about the fact it needs that program to be able to (dis)connect the 3G. Now.... I'm stuck for a bit. I have made tasks, but have trouble with the profile. The location, I would like that to be done as the scotsman has got it. According to if it finds your home as well as, in my case, work network. How to do that? Cause when I want to set my location, it takes me to google maps. And I take it that works by GPS. No problem neither, but drains the battery a bit more... Would anyone be so kind to give me quick and short step through?
akito said:
Okay guys, I have definitly uninstalled Setting Profiles. I can't seem to rely properly on it. One time it works, the other time it doesn't. So, I simply don't want it anymore
Now I'm trying Tasker, seems promising. I have downloaded APNDroid next to it, as Tasker was notifying me about the fact it needs that program to be able to (dis)connect the 3G. Now.... I'm stuck for a bit. I have made tasks, but have trouble with the profile. The location, I would like that to be done as the scotsman has got it. According to if it finds your home as well as, in my case, work network. How to do that? Cause when I want to set my location, it takes me to google maps. And I take it that works by GPS. No problem neither, but drains the battery a bit more... Would anyone be so kind to give me quick and short step through?
Click to expand...
Click to collapse
I use Tasker, but I do not believe you can use WiFi location if WiFi is off. Location base uses GPS. You can set an option to do tasks if the WiFi connects. 3G is automatically disabled on my Incredible when WiFi connects, so I do not have to implicitly set it off. Just be sure to adjust your radius when you use GPS location. You do not want to drive way down the street to have WiFi turn off and 3G come back on.
I use Tasker to also launch the car app when bluetooth connects in my truck. There are good examples on the Tasker Web site.

[Q] Tasker profiles?

Not being of mathematical mind im having trouble understanding the settings in a tasker profile i want to create.
What i need is a rule that would
a) switch on wifi when the screen is switched on
b) switch off wifi 2 minutes after screen turns off
Help would be appreciated!
android does that automatically. when the screen is of wifi goes to sleep after a certain timeout (you can change that timeout using OCLF)
Tasker meh!
I brought Tasker with nearly the same enthusiasm as I had when I got my Android phone. I couldn't wait to start making it my personal butler, alas this wasn't the case.
Yes I maybe I'm a retard and I'm sure I'm going to burn in forum flames of hell, and I'm sure the developer has worked very hard on this and he/she should be congratulated as I would never be able to do what they have done. That aside I'm a paying customer so I am entitled to my opinion. Unless we have all turned into Apple pricks
I'm really disappointed with how poor this is. I feel the UI is very unintuitive, cheap and kind of ugly, I have no idea how to use it and haven't the time or patience to sit in for a week to learn how to. Even the website is the same tatty thing that I saw back in the early part of the year.
I feel a great improvement would be that I could just scroll through all the different pre-made tasks and profiles (in the app not a broswer) created by Joe public and approved by the developer and with a tap of a finger and bit of personalizing, bob is your uncle! away we go!
Just my penny as being a very satisfied customer.
I find it very useful, and not very difficult to understand.
It is simply a tool that will trigger an (set of) action(s) on a set (combination of) event(s), nothing more, nothing less, make it as complex as you want.
@ftgg99, if ou take a look at the tasker website, especially the Wiki, there are enough examples.
I am using tasker now for awhile, and have been able to setup a lot of useful profiles, like
- Auto switch on/off Wifi when i am near my home (based on Cell tower location)
- Auto switch off Wifi after 10 min of a lost connection
- Auto switch off Wifi 10 min after being switched on and no connection was made
- Start skype when wifi is connected, logout skype on wifi disconnect
- Have a incoming SMS read aloud when phone is connected to carkit
- Auto mute between 23:00 and 06:00 except for favourite contacts
- Auto mute when in a meeting
- Disable Auto rotate for certain apps (Ebook reading in bed is annoying otherwise)
- Auto Enable GPS for specific apps and disable afterwards
- Auto switch on Bluetooth when WiFi connection lost (probably going to my car)
- Auto switch off Bluetooth after 10 min of a lost connection
- Auto switch off Bluetooth 10 min after being switched on and no connection was made
stinkypete said:
I brought Tasker with nearly the same enthusiasm as I had when I got my Android phone. I couldn't wait to start making it my personal butler, alas this wasn't the case.
Yes I maybe I'm a retard and I'm sure I'm going to burn in forum flames of hell, and I'm sure the developer has worked very hard on this and he/she should be congratulated as I would never be able to do what they have done. That aside I'm a paying customer so I am entitled to my opinion. Unless we have all turned into Apple pricks
I'm really disappointed with how poor this is. I feel the UI is very unintuitive, cheap and kind of ugly, I have no idea how to use it and haven't the time or patience to sit in for a week to learn how to. Even the website is the same tatty thing that I saw back in the early part of the year.
I feel a great improvement would be that I could just scroll through all the different pre-made tasks and profiles (in the app not a broswer) created by Joe public and approved by the developer and with a tap of a finger and bit of personalizing, bob is your uncle! away we go!
Click to expand...
Click to collapse
When I first bought Tasker, I felt the same way. The UI felt difficult to understand and I couldn't really get it to do what I wanted. Every few weeks, I would redownload it and give it another try, then quickly give up. At some point, it started to make sense and I figured out how it all works.
Yes, Tasker has a large learning curve and the UI needs work, but the time it took to figure it out has been so well worth it.
stinkypete said:
<snip>
I feel a great improvement would be that I could just scroll through all the different pre-made tasks and profiles (in the app not a broswer) created by Joe public and approved by the developer and with a tap of a finger and bit of personalizing, bob is your uncle! away we go!
Click to expand...
Click to collapse
Part of the attraction of Tasker for me is that it's not centred around loading and personalising profiles from a public 'bank'. Yes there are profiles that people have shared, both on the Tasker website and in numerous threads on various forums. I treated these as learning examples, 'tutorials', and used them to gain an understanding of how to start writing my own profiles.
I've had Tasker about 3 / 4 months and have written approximately 15 profiles that have significantly changed how I interact with my N1, and how it interacts with my environment. These range from the very simple (reduce media volume when a wired headset is plugged in), to the horrendously complicated (workaround an issue with my bluetooth connection to my car kit).
I doubt whether I would have bothered to experiment to this extent if the focus had been on loading up and personalising publicised profiles.
I agree that the UI is perhaps less polished than other apps, however at most I would suggest that the dev has concentrated first on function over form. As a software developer who cut his teeth on mainframe COBOL I approve of that, particularly given the number of pretty but buggy apps on the market. Personally I care more about Tasker working correctly - I don't want my phone to ring during meetings if it's set not to - than looking pretty, as (in between tweaking profiles) I don't really see the app itself.
Sorry it took a while to read these replies!
Anywho, i now have had a different idea - tasker should switch on wifi, check if a known network exists and if it does connect. If not it should switch wifi off.
ftgg99 said:
tasker should switch on wifi, check if a known network exists and if it does connect. If not it should switch wifi off.
Click to expand...
Click to collapse
Which is exactly what the WiFi Near Profile does,
with the time interval for each check being possible to set to your own liking.
However, you adding additional restrictions based on the cell-near could save some useless scanning. Usually Wifi Access points have a fairly static location don't they, so why do a WiFi Near scan if you are not at your home/work/collage anyway.
daoth said:
- Start skype when wifi is connected, logout skype on wifi disconnect
Click to expand...
Click to collapse
How did you achieve the logout on wifi disconnect? I can't get Tasker to kill apps, which is said to be a common problem under the latest FroYo stock ROMs (at least for my Desire HD)
I don't have root access btw, since that requires me to downgrade my ROM first, which would cause me to loose my warranty...
daoth said:
Just my penny as being a very satisfied customer.
I find it very useful, and not very difficult to understand.
It is simply a tool that will trigger an (set of) action(s) on a set (combination of) event(s), nothing more, nothing less, make it as complex as you want.
@ftgg99, if ou take a look at the tasker website, especially the Wiki, there are enough examples.
I am using tasker now for awhile, and have been able to setup a lot of useful profiles, like
- Auto switch on/off Wifi when i am near my home (based on Cell tower location)
- Auto switch off Wifi after 10 min of a lost connection
- Auto switch off Wifi 10 min after being switched on and no connection was made
- Start skype when wifi is connected, logout skype on wifi disconnect
- Have a incoming SMS read aloud when phone is connected to carkit
- Auto mute between 23:00 and 06:00 except for favourite contacts
- Auto mute when in a meeting
- Disable Auto rotate for certain apps (Ebook reading in bed is annoying otherwise)
- Auto Enable GPS for specific apps and disable afterwards
- Auto switch on Bluetooth when WiFi connection lost (probably going to my car)
- Auto switch off Bluetooth after 10 min of a lost connection
- Auto switch off Bluetooth 10 min after being switched on and no connection was made
Click to expand...
Click to collapse
How did you get wifi to switch off when its not connected to any network, occasional i leave the house and i forget to switch wifi off. I tried location based wifi off but it wont be as fast or accurate as switching off wifi when theirs no connection after lets say 1-2 minutes. I considered getting another app to do this after i tried to get it to work with tasker, but i have enough apps running in the background.
Do any of you leave gps turned on always so that tasker works better with locations? for me with just network location it can take some time to update and to turn on a profile.
arielc said:
Do any of you leave gps turned on always so that tasker works better with locations? for me with just network location it can take some time to update and to turn on a profile.
Click to expand...
Click to collapse
That may be linked to timings of background context checks when the screen is off.
Personally I always leave GPS on, but only use Net location / Cell IDs for my Tasker location contexts.
If anyone wants any ideas on Tasker profiles or want to know how to do something just go to my blog at http://dbilliter.blogspot.com. I update it regularly and will continue to try and improve the Profiles.
dbilliter said:
If anyone wants any ideas on Tasker profiles or want to know how to do something just go to my blog at http://dbilliter.blogspot.com. I update it regularly and will continue to try and improve the Profiles.
Click to expand...
Click to collapse
Thanks for the work...
The tasker website have some codes
http://tasker.wikidot.com/step-throughs
People please post more codes... would love to see more
drgopoos said:
Thanks for the work...
The tasker website have some codes
http://tasker.wikidot.com/step-throughs
People please post more codes... would love to see more
Click to expand...
Click to collapse
I am posting one everyday this week and I think I have a couple more. I will post even more whenever I either come up with new ideas or someone gives me a new idea.
Ok, I have a very basic understanding of tasker. I actually was able to make my gps app turn on the gps when being executed. I only added gps off exit task after reading the wiki. However, I'm trying to find a way to do the following:
when selecting pandora icon (I say icon, as I may need a pointer to the actual app)
verify wifi connection status - if connected, then load pandora app; if not connected, kill pandora app (might be redundant but just in case)
I also need to create a general wifi connection status, such that if connection is lost, kill specific running apps (such as pandora; could add more later)
I tend to fall asleep using headphones and pandora. I'd REALLY hate to find out that my cable/wifi went down while asleep and I've just been listening to pandora using cell data for several hours.
Now, making a profile to turn on wifi is easy enough, but not sure how to do the above. I'd imagine it'd be something like:
If [pandora app] initiated
wifi_connected = 1 (or yes or whatever)
then load [pandora app]
any help would be appreciated
EDIT: Nevermind. Though knowing more about how variables are used in TASKER would be interesting (I'll play around with them some more), I found out that with wifi ON, cell data usage is cut off. I disconnected my cable connection and with wifi still on, I couldn't connect to anything. So worry was unfounded, it turns out.
dbilliter said:
If anyone wants any ideas on Tasker profiles or want to know how to do something just go to my blog at http://dbilliter.blogspot.com. I update it regularly and will continue to try and improve the Profiles.
Click to expand...
Click to collapse
thanks once again.. am testing out a few of them
drgopoos said:
thanks once again.. am testing out a few of them
Click to expand...
Click to collapse
No problem. It is a hobby for me. I love doing it so I thought I would create a blog with the focus on Tasker to help people along. I know there are a number of other sites but I have been trying to make mine as basic as possible so that anyone could figure it out.
Some actual description of what the tasker profiles do would be very helpful... also less tit shots so that I don't catch crap for looking at the site from work would be nice.
dbilliter said:
No problem. It is a hobby for me. I love doing it so I thought I would create a blog with the focus on Tasker to help people along. I know there are a number of other sites but I have been trying to make mine as basic as possible so that anyone could figure it out.
Click to expand...
Click to collapse
I was trying to make 2 profiles
Profile 1 - I have set up a profile so that when i plug in a headphone with no mic ( and no mic in options ) , it opens the music app
Profile 2 - i have also set up another profile , when i plug in a Headset with mic ( and mic in options) , it opens the dialer.
However when i plug in the headset it opens both the Dialer and music app . Is there a way to prevent the music app from opening.
drgopoos said:
I was trying to make 2 profiles
Profile 1 - I have set up a profile so that when i plug in a headphone with no mic ( and no mic in options ) , it opens the music app
Profile 2 - i have also set up another profile , when i plug in a Headset with mic ( and mic in options) , it opens the dialer.
However when i plug in the headset it opens both the Dialer and music app . Is there a way to prevent the music app from opening.
Click to expand...
Click to collapse
Sorry for the delay. I don't know of a way personally. I can only work with what I got and I don't have a headset with a mic so I have no way of testing. One option you could do though is have a menu pop up and ask you which you want.

Moving from Windows Mobile to Android (HTC Sensation)....Data connection

Having decided against moving to Win Mobile 7 I got a Sensation a couple of weeks ago (from a HD2) and hence my first Android device.
All is going well apart from the data connection. On Win Mob 6.5 I had 5 business emails which the phone checked every 15-30 minutes. The phone would connect, check the emails and then disconnect. If I wanted to browse then when I opened the browser, it connected and disconnected when I closed it.
On the Sensation I seem only to have the option of data connection on or off. I have set the email to sync every 30 minutes but I have to have the data connection on all the time to let it do this. The battery drain is crippling.
I download Juice Defender Ultimate after reading another thread but after setting it up it only allows data for so many minutes in the hour and when I say that the browser should overide Juice it just says I have no connection.
I love Android but losing 75% of your battery in 6 hours because of business emails is not quite good enough.
So is there a way of getting the data connection to go on and off as required (both on demand and for scheduled automatic email syncs)?
And if not what Juice defender settings do I need to get it to do what I want?
Any help much appreciated.
I'm looking for an answer to this to, for the exact same reason. A "Data Connection Timeout" setting or something similar.
Switch to pushmail, saves you quite some data transfers and is more effective in the end. I have two hotmail addresses plus oen gmail on pushmail and I don't notice any more battery drain with data connection permanently on.
Settings>Mobile Networks>untick "Enable always-on mobile data.
This usually helps the battery drain a lot, especially if you don't have things that are always using data, like pandora and the like. If you have things set to specific intervals, then it should work like your WinMo devices and connect then disconnect as needed.
Admittedly the droid likes to be more automated than WinMo, and you have much less control than 6.5. (Never used Phone7, so I can't comment on that.) But, once you learn the tricks to using it (just like the tricks to 6.5) its just as powerful as WinMo was for the business geared user, as far as I can tell. The battery is something that takes some finessing as well, so keep working with it and keep learning. There are some pretty good guides available that can tell you steps to take, even a few here on XDA for the searching.
Good luck with your new droid device, it will become second nature in time. It took me a month to quit tapping the icons in the task bar. LOL.
Thanks for the replies
I think the fact that the HD2 and the Sensation both use Sense helps and therefore it has been fairly easy to get to grips with Android.
I have already unchecked the 'always on' option but I never seem to get any emails unless I open the email program up...even when its running in the background. Win Mobile 6.5 used to check without the email being open.
I have had another play with JD and seem to have sort of got what I want but sometimes the data connection won't wake up after the unlock screen without a data toggle on and off.
Is there any better email apps from the market?
I have already unchecked the 'always on' option but I never seem to get any emails unless I open the email program up...even when its running in the background. Win Mobile 6.5 used to check without the email being open.
Click to expand...
Click to collapse
Strange because when I do that I get a lot better battery life and my push Gmail arrives in 2-3 minutes instead of isntantly. also Google Talk won't stay connected with this setting. Other than that it seems to work really well for me doing exactly what you want.

Categories

Resources