Maddai cavolo!!Era cosi facile?!?Non avevo considerato il toggle!Sai com'è venuto:nuovo task-->rotazione display:toggle.Finito!Ne avevo creato uno prima che non funzionava nemmeno bene ed era 6 volte le istruzioni di questo!Mannaggia...
Maddai cavolo!!Era cosi facile?!?Non avevo considerato il toggle!Sai com'è venuto:nuovo task-->rotazione display:toggle.Finito!Ne avevo creato uno prima che non funzionava nemmeno bene ed era 6 volte le istruzioni di questo!Mannaggia...
Dovremmo creare una sezione nel forum dove mettere tutte le nostre configurazioni.Quest'app è davvero grande!Si possono fare molte cose con tasker che fanno altri programmi.In modo d'avere solo tasker che lavora in background e non ad esempio 5 applicazioni diverse,che oltre che rubare spazio nella memoria si bevo anche ram...In realtà si trova qualcosa in inglese su questa app googlando,ma in italiano sarebbe meglio...
più difficile è se vuoi che l'icona del widget cambi in base allo stato, come faccio ad esempio io per la connessione dati.
(basta comunque creare un profilo di controllo dentro il quale cambiare le icone e il titolo del widget stesso)
per quanto riguarda la condivisione dei profili di sicuro aiuterebbe gli utenti meno smaliziati...
anche se i miei profili, per la maggior parte, sono connessi tra di loro e quindi funzionano solo così come sono...
Trovato!(tratto dal sito profileify.com)
While it is hotly debated in Android forums, many feel that 3G network connections use your battery more rapidly than 2G network connections. This has led to many requests for an automated way to toggle between 2G and 3G so that, for instance, 3G toggles on when you open an application (e.g. browser) that uses your data network but remains off for routine phone use. Unfortunately, the Android API does not provide a way to toggle between the two types of network connections so an automated method is not available. This solution shows you how to place a widget on your screen which takes you directly to the settings screen where you can toggle between these two network connections. It uses an Android ‘secret code’ to open the setting screen where you can change your data network settings.
You Will Need
- Tasker for Android
Solution
Open Tasker
Press the Tasks button and then the New Task menu item to create a new task
Name it 3G Toggler
Press the (+) button to add a new action to your task
Select the Phone menu item and the Call action from the menu
In the number field, enter the following:
*#*#4636#*#*
Press on the Icon image selection button that is on the right lower side of the screen. As of v 1.0.15, this is found immediately to the right of the Task title button that has an ‘A’ on it.
Select an icon from the set of pre-installed icons with your version of Tasker. If you are interested in customizing this with your own icon, check out my tutorial How to Install Your Own Icon Sets on Android Phones. For icons, I’ve compiled The Largest and Arguably Most Beautiful Android Icon Set Ever
Press Done
Press Apply on the Tasker Profile screen and Tasker will automatically close and activate your task
Long-press on your screen where you would like to place your toggle widget
Select the Widgets menu item
Select the Tasker Task widget item from the menu
A Task selection menu will populate with all the tasks that you have in Tasker
Select the 3G Toggler task
The Task will open on your screen
Press the Make Widget button on the lower left hand side of the Task window
The icon that you selected will now show up on the screen at the spot where you long-pressed
That’s it!
Next, press your widget button and a Testing screen will open. From that menu, select Phone information. Drag down to the bottom of the screen and you will find a drop down menu that you can use to select your preferred network type. Write down the current setting (or have a good memory!) because you will have to manually reset it to the current network type when you want to change back to 3G. Select GSM only to place the phone in a 2G network only mode and close the screen.
To re-activate to the 3G network connection, press on your 3G Toggler screen widget, select the same dropdown menu from the Phone Information screen and reset the network connection to the original setting.
Alternative Method with a Shortcut?
I attempted to make a direct dial shortcut widget that would do the same thing for those who do not use Tasker. To do this, I added the secret code to my contacts and made a direct dial shortcut widget on my screen. Unfortunately, this doesn’t work. When I press the shortcut, it attempts to dial the number rather than activating the settings screen and I get an error message recording. If you find an alternative method, please post it in the comments!
grazie ora sono in studionon posso provare ,perdonami ma da una lettura rapida serve a creare un widget ? in realtà vorrei un qualcosa di automatizzato tipo quando il cell è in standby passi in 2g quando lo sveglio torni in 3g
come questa app [APP] Toggle 2G/3G (Tasker/Locale plugin) [v0.0.19 / 12-23] now with injection! - xda-developers che però funziona con CM
Lista Trattative Current : LG G4 - Galaxy Tab S2
Previous : LG Nexus 5 - Galaxy Note 10.1 Samsung Google Galaxy NEXUS - Asus TF300
Google NEXUS S i9020 amoled - Asus TF201
Galaxy S -- Nokia N95 - N70 --Panasonic GD65 - GD 90
Il sistema è lo stesso.Solo che come lo vuoi tu ci metti da un orario ad un altro e non fai il widget nella home.Lo crei direttamente dai profili di Tasker.
Aspetta!!Ho cantato vittoria troppo presto!!Prendiamo l'esempio di un task sulla homescreen.Quando lo clikko mi deve accendere il torch(il led dietro per fargli da torcia).Se riclikko sul task,il led non si spegne!Ci vuole un ciclo diverso.Il primo clik,led acceso,il secondo,led spento e cosi a loop...qualcuno lo sa fare??
devi crearti un profilo di controllo,
cioè un profilo che imposta una variabile a 1 se il led è acceso e a 0 se spento
a questo punto nel task per il toggle imposti due IF
il primo: se la variabile è 0, led on
il secondo: se la variabile è 1, led off
p.s. alla fine di ogni if ricorda di mettere end if.
Ultima modifica di c40s68; 23-01-12 alle 19:20
capisco come deve esser fatto,ma non lo so fare...mi dai una dritta?
mmm,
non posso guidarti passo passo, poichè il mio terminale non ha il flash...quindi i comandi per attivarlo/disattivarlo non ci sono...
cmq dovresti creare un nuovo profilo "LED"
come contesto (first context) seleziona led on (non so se c'è, almeno nel mio no...ma forse perchè non ho fisicamente il flash)
e come task in entrata imposti
variable set
%LED to 1
come task di uscita imposti
variable set
%LED to 0
a questo punto vai nel task per il toggle e imposti
1.
if %LED =0
2.
led set on
3.
stop
4.
end if
5.
if %LED =1
6.
set led off
7.
stop
8.
end if
fine
fammi sapere se va!