[Q] Script to toggle network state - General Questions and Answers

Hi there
So I was wondering if I've just been unable to punch in the right search terms or if its really impossible to make a script to change the network state?
Not being a developer I would imagine it would be possible to control as long as the phone is rooted? Now I've tried juice defender, sadly it doesn't support my rooted stock rom of my xperia v - and I'm not really in the mood to change the rom as of now.
Just to clarify it want to be able to use a script to automatically (by using tasker) change the network state from gsm (2g only) and to lte preferred and vice versa.
//M

m.klinge said:
Hi there
So I was wondering if I've just been unable to punch in the right search terms or if its really impossible to make a script to change the network state?
Not being a developer I would imagine it would be possible to control as long as the phone is rooted? Now I've tried juice defender, sadly it doesn't support my rooted stock rom of my xperia v - and I'm not really in the mood to change the rom as of now.
Just to clarify it want to be able to use a script to automatically (by using tasker) change the network state from gsm (2g only) and to lte preferred and vice versa.
//M
Click to expand...
Click to collapse
There is a great app in the play store called Notification Toggle
I think it might help your particular problem!

vima91 said:
There is a great app in the play store called Notification Toggle
I think it might help your particular problem!
Click to expand...
Click to collapse
Thanks but sadly all it does it taking me to the test menu, so I need to manually change the type wich is exactly what I want to automate
//M
Sendt fra min LT25i med Tapatalk2

guoxinwang said:
look
Click to expand...
Click to collapse
You have got to give me more than that
//M
Sendt fra min LT25i med Tapatalk2

m.klinge said:
Thanks but sadly all it does it taking me to the test menu, so I need to manually change the type wich is exactly what I want to automate
//M
Sendt fra min LT25i med Tapatalk2
Click to expand...
Click to collapse
It does change settings manually...read the application's tutorial...
One thing else..what is your phone? What is your ROM?
I have cyanogenMod and it has a built in option for what you seek!

vima91 said:
It does change settings manually...read the application's tutorial...
One thing else..what is your phone? What is your ROM?
I have cyanogenMod and it has a built in option for what you seek!
Click to expand...
Click to collapse
I think you've got me wrong - I don't want to change manually, I want to be able to do it automatically (preferably by using tasker) - og i wanted to change it manually I would just go to settings and change it.
My phone (right now) is a Xperia V (i did mention that in my original post) with stock rom (rooted) - as stated in the original post I would like it to be independent of the rom
//M
Sendt fra min LT25i med Tapatalk2

Sorry i got you wrong...then again i don't understand...so let's be clear.
Do you want to draw your status bar, and click on an icon that changes the network from 2G to 3G and vice versa?
Or do you want it that when it's 4:00 PM (for example), the network changes automatically to 3G?

vima91 said:
Sorry i got you wrong...then again i don't understand...so let's be clear.
Do you want to draw your status bar, and click on an icon that changes the network from 2G to 3G and vice versa?
Or do you want it that when it's 4:00 PM (for example), the network changes automatically to 3G?
Click to expand...
Click to collapse
The latter of the two
In essence I want it to change to 2g when the screen is off and revert back when the screen is on (I know I have to take a few exceptions into account) - I know I could just turn off all data but that's not really what I'm looking for
//M
Sendt fra min LT25i med Tapatalk2

m.klinge said:
The latter of the two
In essence I want it to change to 2g when the screen is off and revert back when the screen is on (I know I have to take a few exceptions into account) - I know I could just turn off all data but that's not really what I'm looking for
//M
Sendt fra min LT25i med Tapatalk2
Click to expand...
Click to collapse
App 1 This app will solve your problem....it has a pro paid version...
App 2 This one will solve your problem..well..part of it The part where you want data off when screen is off!
I haven't tried any of them...

vima91 said:
App 1 This app will solve your problem....it has a pro paid version...
App 2 This one will solve your problem..well..part of it The part where you want data off when screen is off!
I haven't tried any of them...
Click to expand...
Click to collapse
While I appreciate the fact that you're trying to help please try to read what I'm asking
I don't (as in do not want to) want to turn off all data, what I do want to be able to is to switch between 2g (edge) and 4g (lte) automatically - I'm fairly certain there's no app in the market that does that out of the box. However there's a ****load of apps who claim to toggle between 2g/3g/4g - but they just act as shortcuts to the settings menu...
//M
Sendt fra min LT25i med Tapatalk2

Well...sorry i couldnt help and misunderstood you...again ...you should ask in a development thread for a script...or even learn how to make one!!
Sent from my GT-I9100G using xda app-developers app

Anybody who might be able to help
//M
Sendt fra min LT25i med Tapatalk2

Still would love to hear if anyone has found a solution
//M
Sendt fra min LT25i med Tapatalk2

Related

[WIDGET][3.0+] Simple Dialer Widget

I just finished another app for my "Simple ... Widget" family: A simple but customizable dialer widget which lets you direct dial, view the call log and your contacts from your homescreen.
The app requires at least Android 3.0 as it uses scrollable lists for the call log & the contacts tab.
As usual, the app is free & without ads and available in the Play Store now.
Enjoy and please report any issue you have
The most obvious question, can you add T9 to it?
Gambler_3 said:
The most obvious question, can you add T9 to it?
Click to expand...
Click to collapse
no, sorry, i dont think so. i guess thats quite a complex feature and i have no idea how that works
j4velin said:
no, sorry, i dont think so. i guess thats quite a complex feature and i have no idea how that works
Click to expand...
Click to collapse
Okay nevertheless a very useful app. :thumbup:
Sent from my Nexus S using xda app-developers app
Nice one man...
Using it now
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
Great work as always.
Maybe smaller icons at the top?
The app crashs if I want to do interactions like viewing call log or contacts... But it seems to be a great widget and I hope for further development and updates!
My System:
Samsung i9300 (S3)
LH1 Firmware 4.0.4
Nova Launcher Prime
Root
Any ideas or need more details?
Gesendet von meinem GT-I9300 mit Tapatalk 2
j4velin said:
I just finished another app for my "Simple ... Widget" family: A simple but customizable dialer widget which lets you direct dial, view the call log and your contacts from your homescreen.
The app requires at least Android 3.0 as it uses scrollable lists for the call log & the contacts tab.
As usual, the app is free & without ads and available in the Play Store now.
Enjoy and please report any issue you have
Click to expand...
Click to collapse
I like the idea of the widget. Its not the first of its kind though !
I would like you to make the option to change the size of dialer numbers digit.
Also option to change the background colour/ image. sometimes, it can conflict with some bright colored wallpapers.
great work, keep it up !!
fl4m3y said:
The app crashs if I want to do interactions like viewing call log or contacts...
Click to expand...
Click to collapse
can you send me a logcat log?
aayush_neov said:
I like the idea of the widget. Its not the first of its kind though !
Click to expand...
Click to collapse
i know. i saw a very similiar one in the market, but it hadnt scrollable lists and the free version was incompatible with my devices - so i made my own
aayush_neov said:
I would like you to make the option to change the size of dialer numbers digit.
Also option to change the background colour/ image. sometimes, it can conflict with some bright colored wallpapers.
Click to expand...
Click to collapse
test size is now adjustable in new version, background color is also changable in the widget configuration activity
I saw there's an update available... Should I do the logcat before or after updating?
Gesendet von meinem GT-I9300 mit Tapatalk 2
fl4m3y said:
I saw there's an update available... Should I do the logcat before or after updating?
Click to expand...
Click to collapse
i think it should be fixed in version 1.2 (also attached to first post) which should be available very soon in the play store but if it still crashes then, please send me the log
Jo buddy...
I just want to give you some feedback. The widget is working after the update to jelly bean :thumbup:
Is it possible to make the call log updating automatically? And the number you're typing in the dialer to make it bigger?
Awesome widget so far... Keep on the good work
Gesendet von meinem GT-I9300 mit Tapatalk 2
Issue with Voicemail and Unknown numbers
Hello,
your widget is fantastic, I actually use it with Fallout Evolution V5.0.0 ROM on a HTC Desire S. However, I have problems with the display of Voicemail ("Messagerie Vocale" in french) and Unknown ("Inconnu" in french) numbers, instead I have the following message "Chargement en cours..." which corresponds at "Loading..." I think.
Would be a problem with other language than English because of Unknown and Voicemail are hardcoded?
Regards
jbbidet said:
Hello,
your widget is fantastic, I actually use it with Fallout Evolution V5.0.0 ROM on a HTC Desire S. However, I have problems with the display of Voicemail ("Messagerie Vocale" in french) and Unknown ("Inconnu" in french) numbers, instead I have the following message "Chargement en cours..." which corresponds at "Loading..." I think.
Would be a problem with other language than English because of Unknown and Voicemail are hardcoded?
Regards
Click to expand...
Click to collapse
neither the string "voicemail" nor "unknown" appears in the app. if the number is not in your phone contacts, it should just display the number
Proof screenshot of display issue
j4velin said:
neither the string "voicemail" nor "unknown" appears in the app. if the number is not in your phone contacts, it should just display the number
Click to expand...
Click to collapse
Thanks for your answer, please find an attached screenshot to see what I described before : in the middle of the history you can see "Chargement en cours..." ; it's always the same message when the number is unknown
After 2 weeks of usage: top app! Keep on the good work!
Gesendet von meinem GT-I9300 mit Tapatalk 2
Good work
Sent from my LG-P500 using xda premium
This is brilliant!
Small bug is that if you press the option (three vertical dots) button from the lockscreen you can't change the settings. You have to remove the widget and then put it back on.
Awesome
Rio97 said:
Awesome
Click to expand...
Click to collapse
Awesome widget.

Uninstall apps from homescreen!

Hello! I want to know why it is not possible to uninstall apps from the homescreen! When i press an app and keep holding it and transfer it over the trashcan it deletes it but it automatically reappears on the homescreen! I am able to delete them only from the settings! Is there another way???? Thanks in advance!
It is possible, I do that in Nova launcher.
NIKOST said:
Hello! I want to know why it is not possible to uninstall apps from the homescreen! When i press an app and keep holding it and transfer it over the trashcan it deletes it but it automatically reappears on the homescreen! I am able to delete them only from the settings! Is there another way???? Thanks in advance!
Click to expand...
Click to collapse
If you hold and then drag to the info section then you have an option to uninstall from the info screen.
Only on ICS, for some reason it has been removed in the JB roms. Misses it a lot also on my s3.
Sendt fra min GT-N8000 med Tapatalk2
CalInTheZone said:
Only on ICS, for some reason it has been removed in the JB roms. Misses it a lot also on my s3.
Sendt fra min GT-N8000 med Tapatalk2
Click to expand...
Click to collapse
Yep. You''re right. Just checked my S3. How annoying.

[HIDDEN MENU] 5 lockscreen Shortcuts

Hi all,
i know that it gives a thread about the Hidden Torch menu, so i thought i test a little bit for some others.
I tested a lot with the shortcut Maker and found a link to a Setting Menu where u can set 5 App Shortcuts direct to the lockscreen like in other FWs befor.
the string is under Settings:
com.android.settings/com.android.settings.lockscreenshortcut.LockScreen SchortcutSettings
In this Menu u can manage 5 Apps which u want on the bottom of the lockscreen. This functionwas given in other FWs before, so i thought someone will use it when he knows that it is given in the FW now
Isnt this already in the firmware.. it is already enenbled on tmo s4
Sent from my SGH-M919 using xda premium
Realy?
Didnt found it in the FW i use in the moment. I can only put the Apss one the second Screen one the left or right when ur on the lockscreen in wipe from the right to the left.
Can u tell wehre this menu should be?
You could do this from day one
Sent from my GT-I9505 using Tapatalk 2
keithokane said:
You could do this from day one
Sent from my GT-I9505 using Tapatalk 2
Click to expand...
Click to collapse
And where sould be this menu where could put the toggle on? I have no menu in the DBT Version for that menu, or im looking in the wrong menu, could i be so blind?
Setting/Lockscreen/My Device/Shortcuts
Sent from my GT-I9505 using Tapatalk 2
Yeah always been there, we'll for me anyways.. may be limited in different firmwares...
Sent from my GT-I9505 using Tapatalk 4 Beta
beaver2233 said:
Yeah always been there, we'll for me anyways.. may be limited in different firmwares...
Sent from my GT-I9505 using Tapatalk 4 Beta
Click to expand...
Click to collapse
Apologies for the totally off-topic question, but may I ask what font you are using?
Thx
Sent from my GT-I9505 using Tapatalk 2
rcb_biep said:
Apologies for the totally off-topic question, but may I ask what font you are using?
Thx
Sent from my GT-I9505 using Tapatalk 2
Click to expand...
Click to collapse
Haha, it's Sony Sketch (I install it using rom toolbox). Great font, used it for years.
Sent from my GT-I9505 using Tapatalk 4 Beta
Ok this part of the Menu is missing in my FW DBT.
So i think the DBT is the problem that this menu point is missing, in the past it was missing to in other FWs for Galaxy S2 DBT versions.
i have it from day one in every firm i tried
criszz said:
i have it from day one in every firm i tried
Click to expand...
Click to collapse
Then is the question "why is this menu missing in the DBT XXUBMF8 SuperSlim?" I think not that it is missing cause an app was removed, cause thats are system Settings which are not handeled over an app.
And i heard that im not the only one where this menu is missing, its a little bit strange...
I have DBT too and mine is also missing, kinda annoying...
maybe because i have 9500 ?
beaver2233 said:
Haha, it's Sony Sketch (I install it using rom toolbox). Great font, used it for years.
Sent from my GT-I9505 using Tapatalk 4 Beta
Click to expand...
Click to collapse
Thx!!
Sent from my GT-I9505 using Tapatalk 2
crack_monkey said:
Hi all,
i know that it gives a thread about the Hidden Torch menu, so i thought i test a little bit for some others.
I tested a lot with the shortcut Maker and found a link to a Setting Menu where u can set 5 App Shortcuts direct to the lockscreen like in other FWs befor.
the string is under Settings:
com.android.settings/com.android.settings.lockscreenshortcut.LockScreen SchortcutSettings
In this Menu u can manage 5 Apps which u want on the bottom of the lockscreen. This functionwas given in other FWs before, so i thought someone will use it when he knows that it is given in the FW now
Click to expand...
Click to collapse
How did you get the lockscreen shortcuts? Miss them from previous firmwares...
Dan-SRi said:
How did you get the lockscreen shortcuts? Miss them from previous firmwares...
Click to expand...
Click to collapse
U must get a app like QuickShortCutMaker
In this app u must search under Settings for this point:
com.android.settings
/com.android.settings.lockscreenshortcut.LockScreenSchortcutSettings
thats the menu you need.
crack_monkey said:
U must get a app like QuickShortCutMaker
In this app u must search under Settings for this point:
com.android.settings
/com.android.settings.lockscreenshortcut.LockScreenSchortcutSettings
thats the menu you need.
Click to expand...
Click to collapse
This worked! I had these same problems with a number of DBM firmwares, this worked perfectly on first official 4.3 release.
Thank you very much.
@OP
I thought the shortcut options for the lockscreen (in the standard lockscreen settings menu) were varied depending on the type of unlock method you used. If you only unlock by swiping, you had more widget/shortcut options available, but if you had a tighter lockscreen security then you don't have so many options.
I use a pattern unlock and the options disappear for me because of my unlock method.
I'll try your guide and see if I can add shortcuts without changing my lockscreen security type.
---------------------------------------------------------------------------------------------------------------
EDIT: I tried the shortcut you posted, it does bring up that settings screen regardless of what type of lockscreen you're using, but with my pattern lockscreen it still doesn't show the shortcuts on there. When I set my lockscreen type to swipe, the app shortcuts appear on the lockscreen, and so does the menu option in the standard settings menu to select/change the apps, as per your shortcut to this screen.

CM10.1 - Little bugs and Questions

Hi, I´ve made this thread so that we don´t bother in the Devs section.
Last night I´ve flashed CM10.1 by Team Canjica - Nightly 10th September.
It´s an awesome rom!
I´m facing some minor bugs.
1- Ringtones, Alarms and Notifications sounds.
I´ve replaced my Audio folder inside /system/media as I always did. Checked the permissions are set to rw-r-r but I can´t either select those audio files from the audio settings and also, can´t play them. If I put those same files inside the sd, I can play them, but I can´t select them.
2- NDrive
I can´t use nDrive 11. It feezes at start image. Anyone else faced this problem?
3- YouTube
Sometimes freezes, specially when trying to go to other part of a movie with the progress bar.
4- Shortcut / Notification screen
Is it possible to permanently hide the shortcut page that appears before turning on to the notification screen?
5- Governors
Which governor you can recommend for a basic use, phone, whatsapp, some camera, wifi and bluetooth.
6- Sd-Card
Should I format my card or repartion it in any special way to make it work better with CM10?
I´ve been using the same sd since my i9003, using gingerbread, then CM, and afterwards I changed it to my Advance, JellyBean and now CM.
Thanks indeed.
I'm facing troubles with instagram's advanced camera option. That doesn't work, I got black screen. It is solved by disabling HW overlays, but when I reboot the phone the bug returns.
BachuArg said:
Hi, I´ve made this thread so that we don´t bother in the Devs section.
Last night I´ve flashed CM10.1 by Team Canjica - Nightly 10th September.
It´s an awesome rom!
I´m facing some minor bugs.
4- Shortcut / Notification screen
Is it possible to permanently hide the shortcut page that appears before turning on to the notification screen?
Thanks indeed.
Click to expand...
Click to collapse
If you're talking about 'quick panel', you can. Settings > system > quick settings panel > quick pulldown > OFF.
evandromon said:
I'm facing troubles with instagram's advanced camera option. That doesn't work, I got black screen. It is solved by disabling HW overlays, but when I reboot the phone the bug returns.
Click to expand...
Click to collapse
When you reboot the phone it aromaticly enables HW overlays.
And I'm also having problems with youtube. In my case it plays the sound and rarely the picture. Any sugestions ?
Sent from my GT-I9070 using xda premium
For the 1st thing>
Download ES File Explorer. Then go to select ringtone in system settings and choose es file explorer.
sd card not mounted
Hi everyone.
I'm trying to install CM10.1 since a few and everytime I'm having some troubles with my sd card.
Basically it doesn't mount.
I have no access at all and i really don't know where to crush my head.
Can someone please help me?
Thanks,
Steve
If you're having problems with your ext-sd you need a file manager like "root browser" or "astro file manager"
Sent from my GT-I9070 using xda premium
garry64 said:
If you're having problems with your ext-sd you need a file manager like "root browser" or "astro file manager"
Sent from my GT-I9070 using xda premium
Click to expand...
Click to collapse
i've only used the default one and i couldn't see it.
what if i use a crappy sd card to flash the cyanogen + gapps and then i just insert the favourite one?
Now we have the wifi tethring working in cm10.1, is there any way to get wifi direct working?
Maybe i can copy paste apk of wifi direct from stock to cm? What u say?
Sent from my GT-I9070 using Tapatalk 4
atishey23 said:
Now we have the wifi tethring working in cm10.1, is there any way to get wifi direct working?
Maybe i can copy paste apk of wifi direct from stock to cm? What u say?
Sent from my GT-I9070 using Tapatalk 4
Click to expand...
Click to collapse
make a Nandroid and try the Magic :fingers-crossed:
evandromon said:
I'm facing troubles with instagram's advanced camera option. That doesn't work, I got black screen. It is solved by disabling HW overlays, but when I reboot the phone the bug returns.
Click to expand...
Click to collapse
Sorry, I don´t use Instagram.
The regular camera works perfectly!
szzlgupta said:
If you're talking about 'quick panel', you can. Settings > system > quick settings panel > quick pulldown > OFF.
Click to expand...
Click to collapse
That was what I was looking for, thanks!
steve0908 said:
Hi everyone.I'm trying to install CM10.1 since a few and everytime I'm having some troubles with my sd card.
Click to expand...
Click to collapse
Never had that problem.
Is it the first time you face this problem? Did you try it in another device?
Anyone using nDrive or Maps?
nDrive, can´t make it work at all.
Maps > can´t make gps work (it works in oruxmaps and gps status.)
Thanks
On 09/09 nightly compass works fine (calibrate with gps status) but does not work on 09/10 and 09/11, Any idea?
Thanks in advance and sorry my poor English
Regards !
garry64 said:
When you reboot the phone it aromaticly enables HW overlays.
And I'm also having problems with youtube. In my case it plays the sound and rarely the picture. Any sugestions ?
Sent from my GT-I9070 using xda premium
Click to expand...
Click to collapse
How to disable HW overlays? maybe I can talk with a friend that could make a script to disable it every boot
raan4 said:
On 09/09 nightly compass works fine (calibrate with gps status) but does not work on 09/10 and 09/11, Any idea?
Thanks in advance and sorry my poor English
Regards !
Click to expand...
Click to collapse
I´ve flashed 09/11 from 0, full wipes.
GPS works perfectly for me, without gps status.
Thanks, i'll do tonight and post later
Sorry my poor English
Regards !
d14gvn said:
How to disable HW overlays? maybe I can talk with a friend that could make a script to disable it every boot
Click to expand...
Click to collapse
in developers options
Hey guys
Can anyone test for me if you can play videos from the app "LIG TV".
I use that app every hour and i cant play the vids which includes news.
In stock havent problems.
Thanks
Sent from my GT-I9070 using xda app-developers app
guyshelpmeplease said:
Hey guys
Can anyone test for me if you can play videos from the app "LIG TV".
I use that app every hour and i cant play the vids which includes news.
In stock havent problems.
Thanks
Sent from my GT-I9070 using xda app-developers app
Click to expand...
Click to collapse
Same here but with Twitch.tv app, I am unable to play any video, stock works fine.
For your governor needs you should try ondemandq and sio, works perfect for me and is also good battery wise..
But plz tell me the right governor for hd games on the phone like asphalt 7, it lags a little bit..
Sent from my GT-I9070 using xda app-developers app
zubairamd said:
For your governor needs you should try ondemandq and sio, works perfect for me and is also good battery wise..
But plz tell me the right governor for hd games on the phone like asphalt 7, it lags a little bit..
Sent from my GT-I9070 using xda app-developers app
Click to expand...
Click to collapse
I play asphalt 8 with maximum quality, lags free without any governor.

remove lock when connected to wifi app?

Is there a way of removing the security lock when connected to WIFI, like when at home?
Milamber said:
Is there a way of removing the security lock when connected to WIFI, like when at home?
Click to expand...
Click to collapse
1) wrong thread,all question go to q&a forum
2) try skip lock( https://play.google.com/store/apps/details?id=com.benhirashima.skiplock)
actually there are some similar apps around,search xda u shud find something..
Thanks,but im looking for an application and this thread is for that.
Sent from my GT-I9505 using Tapatalk
Milamber said:
Thanks,but im looking for an application and this thread is for that.
Sent from my GT-I9505 using Tapatalk
Click to expand...
Click to collapse
This can be achieved with an app called tasker, When I am home it disables my lock and changes my phones settings. When I'm out of the house it re-enables the lock etc.
But tasker can do so much more than this as well, it is difficult to start with but definitely worth the time https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm&hl=en_GB
http://www.youtube.com/watch?v=BEhnOJl5mTo <<< a beginners introduction to tasker

Categories

Resources