Hello all,
I'm trying to control the "on/off" state of mobile data via my own application and while I know of APNDroid, I find it unreliable with my HTC Desire using the 2.2 OTA update (unrooted). It works two or three times, but once the screen has been turned off for quite a while, it no longer works.
However, tapping on the widget from HTC always works and so I was wondering if there is a way to simulate the tap on the widget.
For instance, I thought about sending an intent to the widget. But I'm not sure where to start as I have no idea what the name of that intent could be.
Does anyone have any clues as to where to start looking?
Thanks in advance.
Tasker is an excellent app and the latest beta of it now supports turning on and off mobile data using this toggle.
Hello,
I know about Tasker and am currently evaluating it.
It has two different tasks to control the mobile data, one internal (Mobile Data) and one using APNDroid (Mobile Data APN).
The former does not to work at all, while the latter only works until the screen turns off for more than 5 minutes.
Hence the reason why I'm looking for alternatives while waiting for replies on the Tasker groups.
You are saying that the latest beta supports turning on/off "using this toggle". What toggle are you talking about? Is that the HTC widget mobile data toggle?
If yes, how do I control it via Tasker? I did not find anything obvious.
Regards
i use switch pro widget and love it
I use switch pro, but some people claim its an APN renamer which its not (unless you tell it to be in the settings)
However it is possible to control htc's data connection as CM has built it into his modified power control widget (see CM6 roms).
As to the exact modification, I don't know as I have never taken said widget appart to see what he told it to do.
Supposing SwitchPro works ok, which I can not confirm as there is no demo version, how would you control it from Tasker?
Related
Hi, anyone know of an app which will block all APN, always on mobile data - etc etc and only will permit them on demand with some designated applications?
I really want everything off but then when I check my email, or use a map, etc I don't want to have to be dealing with messages which tell me that data is disabled and I then have to go and activate the thing manually - and then remember to switch it off.
I want something which will automatically connect while my email program is running and then disconnect as soon as I shut it down.
I have an idea that JuiceDefender should be able to do this but most of JD doesn't seem to be working with a Desire HD. I have to accept the defaults - which means that a whitelist only starts to operate at battery - 15%.
It won't let me set it higher - although the functionality is meant to be there.
Anyway, I am sure that there is something around but I can't find it.
Can someone suggest something?
Ta
In fact I've purchased Ultimate Juice and more of the features are enabled - but it still doesn't seem to be fully compatible with the DHD
Either ultimate juice or switchoro widget.
Sent from my Desire HD using Tapatalk
Thanks - Switchpro, I think.
Juicedefender just about works but doesn't seemto control the wifi as well as it should.
Is Switchpro automated or is it just a collection of manual toggle widgets?
Does any one know how to make an app that can auto on/off connectivity functions?
For 3g,Bluetooth, airplane battery saver??
That would have been perfect. I don't like to have to go into an app to do that, it should have been possible to do it just from a tile.
i don't think the api's necessary are available to developers for that, but i agree it would be a killer app to have.
have it timed auto/on/off
At least for unjailbroken devices I can assure you that this can't be done with the current APIs. Otherwise Apps like Connectivity Shortcuts and Network Dashboard would use this instead of linking to the settings pages.
It might be possible with a jailbreak but as of today i have no App that managed to change those settings programmatically.
What would be killer is to have the phone toggle "ON" wifi when you are at home based on your GPS location. And automatically turn it "OFF" when you were no longer within range.
Its really frustrating as this should be simple for MSFT to implement and this functionality works really well on Android.
I love it that my phone turns the bluetooth on for me to drive to work and BT off and the Wifi on when I get home.....
Hi,
I am currently using a VPN to get into my network & Then accessing my data that way. However to get to it in Gingerbread, I have to hit menu, then settings, then wireless, then scroll down to VPN, then click on my VPN, then put my password in & hit connect.
It would help a lot to be able to just click on my VPN link on the 'home' screen. I cant figure out how to get the shortcut there.
Any suggestions?
Thanks,
Rich
I just tried and you add a shortcut to your home screen, just as you add a widget.
I dont see anything related to a VPN within the shortcut menu or widgets. Any ideas on how to do a shortcut for the VPN?
Tried anycut from the market?
Sent from an Epic in the sky.
Thanks, Anycut might do the trick, of course there is no VPN listed. Is there a way to determine what processes are running in Android? If i could find the VPN process, I could probably get it going.
I believe you can achieve this with Tasker. I know its a paid app but its an option.
As a side note, how did you manage to get tour vpn to work? Are you using ddwrt by chance? Since getting this phone I could no longer vpn over sprints network due to firewall issues. From what I found online if you ask sprint for a static IP it fixes the problem but they charge you a monthly fee. It used to work fine on my old HTC hero.
Sent from my SPH-D710 using Tapatalk
dbldown768 said:
I believe you can achieve this with Tasker. I know its a paid app but its an option.
As a side note, how did you manage to get tour vpn to work? Are you using ddwrt by chance? Since getting this phone I could no longer vpn over sprints network due to firewall issues. From what I found online if you ask sprint for a static IP it fixes the problem but they charge you a monthly fee. It used to work fine on my old HTC hero.
Sent from my SPH-D710 using Tapatalk
Click to expand...
Click to collapse
We use L2TP/IPSEC PSK at work though Sonicwall, and it works great.
I don't have a static IP on my account. Works fine from 3g or my home WiFi.
Sent from my SPH-D710 using XDA
I am using a Zyxel firewall & L2TP also. It works fine but... sprints lousy service seems to stall out, requiring me to re login to the VPN. Yesterday with 1 bar, I was logged into the VPN but there was not enough 3g to actually use any data, but enough to stay logged in for 2 hours & not get any emails.
It works fine & I suspect if i had better 3g (or verizon) it would work OK.
I was using DDWRT & OpenVPN with CM7 on my Evo 4g & it worked but I switched to a new router.
Yeah, missing emails is never good.
We don't have an Exchange server at work (not cost effective enough to make it work properly across 10 locations), so I'm able to access my email with K9 via IMAP or POP3.
It's strange that it worked with one Sprint phone, but not reliably with another. Has data service had a general decline in your area?
Sent from my SPH-D710 using XDA
You should try vpn show. You can find it in google play.
Check the "Launch VPN" app on Google Play
Sorry to revive an old thread. I was looking for this as well and found a way. Just adding if anyone searches for this sort of thing.
Add a shortcut to home screen, select settings, then look for VPN.
This works in my HTC ONE on 4.2.2
I use NFC Task Launcher on my Samsung Galaxy S4.
The following could be a little bit different depending on your phone's make and model and rom type. I did the following.
WARNING: I am not responsible for any damage made to your phone or anybody or anything else during the reading or by following the acts of this tutorial in any way possible.
Click to expand...
Click to collapse
Open up NFC Task Launcher and go through the tutorial.
- In the end you can create you own task.
- When you create a new task just click for NFC.
If you have NFC Disabled, just leave it like that and when it'll ask you if you want to enable it, press cancel. (TIP; if the top bar overlay is bugging with more information, just tap on one of the buttons after explanation to have it's focus come back to the window.)
- Name the task 'VPN' or something.
- Click on the cross (✚) in the right top corner to add an action
- Search for 'Applications & Shortcuts' and select 'Open Activity', then click next at the bottom.
- The application list will load up. Select 'Settings' as an application and the activities list will be updated.
- Choose; 'com.android.settings.Settings$VpnSettingsActivity' and select 'Add to Task' at the bottom.
- Then press the arrow to the right '→' in the top right corner.
- It will say you need to place a tag underneath it. DON'T DO THAT, AS IT WILL OVERWRITE THE TAG. (I hope you still have NFC OFF!)
- Just press the tick mark (✓)
- Now you have at least 1 task in the 'My Tasks' list.
Now, to add this to you're homescreen, do the following;
- Go to your homescreen.
- Add a widget like you would normally do. The name of the widget is 'Run Task', so look for the 'R'.
- There are 3 options there, background color (I personally like the black BG), select Icon (I've chosen the gear icon since its a setting) and select task. In 'Select Task' choose for the VPN task you've made and press 'Done'.
- Now press the task on the homescreen, and it'll open up the VPN list (at least on SGS4 it does).
- Connect to your VPN as you would normally do.
You can even write this to an NFC, but that doesn't make sense, since all it does is open the VPN settings menu, not connecting to the VPN directly.
Sidenote; This app is also handy for making other tasks, such as tweeting your at work, check in at Foursquare, send your boss an email that you're in the office and turn off the sound of your phone all in one task, just by connecting to your works wifi connection or by taping an NFC task.
Now you can easily connect to your favorite VPN easily.
Hi
I've just loaded Llama to control my htc Desire according to my location. I think it's a great app, but there's only one thing I haven't been able to get it to do: toggle my APN on or off as an action. The app confirms the action, but nothing happens and I have to toggle the APN manually--not a great drama, I know, but I'm betting there's a way to do it.
Any ideas out there?
Thanks
Hi guys,
I'm a new HTC One M8 (and Android) user. I have previously owned only Apple devices for the past 3 or so years, and never owned an Android device.
I have a couple of questions to do with the M8 and hoping you guys can help.
1. On iOS, I use Activator on my jailbroken iPhone, specially, to turn off some features when I join any WiFi network, and turn them off when I leave WiFi. Is there anything available for Android, that will allow me to trigger events when joining/leaving WiFi? (I am not able to root, this is a work phone). I specifically want to disable bluetooth, cellular data, and LTE when joining WiFi, and re-enable them when leaving.
2. I have changed my default location to my hometown in the HTC weather app, as I don't allow my phones to track my location. The weather app shows my home town, on the home screen weather/clock widget. However, on the lock screen widget, it just says 'Weather Unavailable'. Anyone know how I can fix that?
3. Is there a way to view battery usage time per app? At present I can only see how much percentage each app has used, and how long the phone has been on in total. Ideally, I would like to know standby time and usage time.
Thanks!
xreyuk said:
Hi guys,
I'm a new HTC One M8 (and Android) user. I have previously owned only Apple devices for the past 3 or so years, and never owned an Android device.
I have a couple of questions to do with the M8 and hoping you guys can help.
1. On iOS, I use Activator on my jailbroken iPhone, specially, to turn off some features when I join any WiFi network, and turn them off when I leave WiFi. Is there anything available for Android, that will allow me to trigger events when joining/leaving WiFi? (I am not able to root, this is a work phone). I specifically want to disable bluetooth, cellular data, and LTE when joining WiFi, and re-enable them when leaving.
2. I have changed my default location to my hometown in the HTC weather app, as I don't allow my phones to track my location. The weather app shows my home town, on the home screen weather/clock widget. However, on the lock screen widget, it just says 'Weather Unavailable'. Anyone know how I can fix that?
3. Is there a way to view battery usage time per app? At present I can only see how much percentage each app has used, and how long the phone has been on in total. Ideally, I would like to know standby time and usage time.
Thanks!
Click to expand...
Click to collapse
1 https://play.google.com/store/apps/details?id=il.co.kix.minitasker&hl=en_GB
2 dont know
3 have a look at this one https://play.google.com/store/apps/details?id=com.rootuninstaller.bstats&hl=en_GB
jaythenut said:
1[/url]
2 dont know
3 have a look at this one
Click to expand...
Click to collapse
Thanks, those two apps are perfect!