Tasker--der Alleskönner kann noch viel mehr

Dieses Thema im Forum "Effizienz" wurde erstellt von mase80, 27. Sep. 2012.

  1. mase80

    mase80 Mitglied

    Registriert seit:
    23. Okt. 2007
    Beiträge:
    36
    Zustimmungen:
    0
    Hallo liebe Gemeinde,

    logofreax hatte mal vor einiger Zeit (2Jahre) einen Thread erstellt der euch Tasker etwas näher bringt.
    http://www.faq4mobiles.de/apps-spiele-anwendungen-widgets/88756-android-tasker-und-das-handy-macht-fast-alles-von-selbst.html

    Ich möchte euch gern zeigen, was Tasker noch alles kann.

    Ich selbst beschäftige mich nun schon einige Zeit mit diesem mächtigen Tool.

    Tasker kann mit Hilfe eines Add-on nun auch Mini-Apps erstellen. Bis jetzt habe ich zwei Apps erstellt.
    Ein Weckerapp (v1 noch in Betastatus)
    und ein TalkmyWeather App (v1).

    Was wird benötigt?
    Von Vorteil wäre ROOT-Rechte aber nicht zwingend erforderlich

    HauptApp:
    - Entwickler Crafty Apps
    - Tasker

    Plugins:
    - App Factory [erstellen von Apps]
    - Secure Settings [root erforderlich; diverse Einstellungen möglich]
    - Zoom [Widget erstellen]
    - Widgetsoid [Widget erstellen]
    - Minimalistic Text [Hilfetool für Variablen]
    - Locale Plugins [diverse Plugins]

    Nun zur App Factory:

    Zur Vorbereitung empfehle ich euch alle Profile, Tasks und Szenen mit einem Namen und einem Logo (andere Logos hier) zu versehen.

    Tasker: App Creation

    Ihr könnt eure Tasks (und nur die Tasks) als App exportieren.
    Das heißt, wenn ihr für eine Aktion mehrere Profile benötigt müssen diese irgendwie in diesen einen Task eingebunden werden. Wie?
    Ganz einfach in dem ihr einen Task erstellt der das nötige Profil aktiviert.
    Task sollte so aussehen:

    Code:
    ►Tasker
       - Profil Status: (Lupe) das Profil auswählen
       - setzen: An
    Wenn ihr dies getan habt dann klickt lange auf den Task und wählt "Eportieren". Hier nun "As App" anwählen. Ihr erhaltet nun ein Configurationsfenster.
    Bei Paket muss nun nach folgendem Vorbild com.domain.mase80.beispiel der Name des zu installierenden Paketes eingetragen werden.

    [​IMG]

    Unter Advanced Configuration könnt ihr einstellen für welche Android Version diese Mini-App zur Verfügung stehen soll und so weiter. Ich empfehle euch diese Version zu nehmen die ihr selbst aktuell grade nutzt. Nicht Android 2 eintragen wenn ihr selbst die Version 4 und höher nutzt.

    [​IMG]
    [​IMG]

    Ich denke für den Anfang sollte es reichen. Ich stehe euch gern immer mit Rat und Tat zur Seite.

    Ich werde euch auch mal meine Werke zur Verfügung stellen

    Profile:
    Beschreibung:
    RNunterdr: per Widget entscheiden ob der nächste Anruf mit unterdrückter Rufnummer stattfindet oder eben nicht.

    Wetter: Sagt das aktuelle Wetter zu einer eingestellten Uhrzeit/Datum an. Einstellung der eigenen PLZ möglich. Dies ist die Vorlage zu meinem App.

    Wecker [benötigt ROOT]: Startet zu einer festgelegten Uhrzeit, sagt als erstes die Uhrzeit an und startet TuneIn Radio. Durch umdrehen des Displays (Display unten) wird auf snooze gesetzt und bei Klick auf die Benachrichtigung (Statusleiste) wird der Wecker deaktiviert.

    Sygic / Navigon [Benötigt ROOT und das Plugin Secure Settings]: Bei Start der App wird GPS automatisch aktiviert und beim verlassen wieder deaktiviert.

    Statbar: durch kurzes Schütteln wird die Statusbar ausgeklappt und durch erneutes Schütteln wieder eingeklappt.

    SMS/MMS: Benachrichtigung bei verpasst Nachricht. Es wird solange Benachrichtigt bis die SMS/MMS gelesen wurde.

    Aus Datenschutzgründen kann ich meine personalisierten Profile nicht hochladen. ("Zuhause WLAN an"; "Daten Nachts aus" wenn ich zuhause bin und es hat den anschein ich schlafe) Bitte habt Verständnis dafür.

    App:

    Talk_Weather_v1

    Ich hoffe euch gefällt mein Beitrag und hoffe natürlich auch auf rege Teilnahme. :D

    Gruß
    mase80

    Edit:
    Bei dem Wecker-Profil habe ich einen winzigen Fehler entdeckt (kommt durch das ganze Testen für eine App-Erstellung).
    Hier wird beim aktivieren nach eurem Namen gefragt. Löcht diese erste Aufgabe "Variable abfragen" und geht unter Variable zu "%Name" und vergibt hier bitte euren Namen. Dies wird benötigt damit ihr auch angesprochen werdet. Ihr könnt den Text zum vorlesen auch abändern ohne dass es einen Namen benötigt.
    Sorry dafür :tschuldigung: . Wer es nicht hinbekommt der melde sich und ich stelle das bereinigte Profil online.

    Downloadupdate

    Ist nun bereinigt und hat jetzt eine Abfrage des Namens. Man kann nun entweder über ein Widget (muss erstellt selbst werden) oder direkt im Task "Name_Wecker" den Namen vergeben (bei geöffnetet Task den kleinen blauen Pfeil klicken).
     
    #1 mase80, 27. Sep. 2012
    Zuletzt bearbeitet: 1. Okt. 2012
  2. mase80

    mase80 Mitglied

    Registriert seit:
    23. Okt. 2007
    Beiträge:
    36
    Zustimmungen:
    0
    Hallo Leute,

    Tasker wurde released


    Tasker for Android

    News

    04/11/2012 Version 1.3.2u1 released (bugfixes) [Download Dinglisch] [Download Playstore]
    02/11/2012 Version 1.3.2 released

    Release Notes

    04/11/2012: v1.3.2u1

    bugfix: event: File Modified: directory wasn't working, now triggers on file create/delete/movein/movout of dir
    bugfix: timer task: wasn't triggering when display off
    bugfix: scene element backgrounds: weren't dynamically updating if a colour was a variable
    bugfix: scene element params with array index spec %Col1 weren't updating when %Col was changed via Variable Split
    bugfix: variable references like %Col(1) weren't functioning for scene element colour params

    02/11/2012: v1.3.2

    Additions

    Menu / Prefs / Monitor / Cell Workaround, defaults to false
    %CALS: newline-separated list of available calendars
    action Set Tasker Pref: added some boolean preferences
    profile properties: Enforce Task Order option
    action Media Control: Play, Honeycomb+, defaults to Toggle Pause on earlier devices
    variable Time MilliSeconds (%TIMEMS)
    Menu / Info / Online Guides
    action Say/SayToFile: support for locale 'default' which chooses the language for
    action Say/SayToFile: fill in default values for Engine:Voice parameter: default:default
    action Send SMS: support for long (multi-part) SMS
    action Variable Convert: To Lower Case, To Upper Case, To Upper Case First
    enabling/disabling of individual actions in a task
    action Astrid: Act.fm sync
    handle (global) variables in scene element parameters referring to colours (Text,TextEdit,Button,Oval,Rectangle)
    variable Device Telephony ID (%DEVTID)
    scene element TextEdit / action Variable Query: extra Input Type: Pass Code
    action Open File: optional Mime Type parameter
    action Anchor, does nothing
    state: BT Status (on/off)

    Removals

    removed: %LAPP and action Load Last App (broken) marked as unavailable

    Bugfixes

    Play Store version, preferences changes would stop sticking after a while
    action Take Photo: catch errors from camera
    app creation: show scene with non-overlay type was crashing when displayed when keyguard showing
    menu elements: was not executing default item action after timeout if certain (real or virtual) keys were pressed
    HTTP Post: posting a file wasn't working
    HTTP Post: don't remove SD prefix from Data / File parameter
    JavaScript: set base URL of file:// to enable cross-site requests
    app creation: adding custom manifest permissions was causing crash on accept
    action Set Tasker Pref: was always returning with error and stopping task even on success
    scene edit: returning from first element edit of new scene crashing on some devices on some occasions
    bitmap memory leak in scene-edit pre-ICS some devices on some occasions
    scene element names with : were causing problems
    sometimes clicking a link in a WebView scene element could crash
    Is Set, Isn't Set conditions: handle single-slice array references e.g. %arr(%index)
    JS: function Say: default to system language before Tasker UI language
    app creation: SL4A script extraction from kid was failing on some devices / some file extensions
    scene element position: wasn't immediately updating visually if animation time was 0
    scene element size: wasn't respecting animation time
    scene element position/size: blip at end of animation hopefully removed, though could be SDK-version sensitive
    shifting project tabs with animation pref disabled was bugged
    JavaScript: var declarations without a value were being missed (var xxx;)
    action Record Audio: don't limit direct-entry max value
    JS: functions returning success/failure were always returning false
    Take Photo wasn't replacing local vars for file path and pic size args
    JS: locally defined arrays were causing post-script crash
    Timer Task: update when display comes on
    action Media Control on Honeycomb+ with simulated button: use dedicated Pause keycode
    Create Scene then Set Element Position/Size was crashing
    Run Log: don't complain when storage not mounted
    Set Tasker Pref: was not allowing boolean settings
    deleting scenes referring to other scenes with anonymous tasks could cause unwanted loss of those tasks
    action Load Image, was not handling URI specification correctly
    condition variables from plugins, bundle was being cached and reused if no values were given next time
    state Orientation: turning display off and moving to in-between orientation was keeping context active
    action End Call was not working in kid apps (missing permission)
    action Delete File: don't warn if file not there and Continue On Error checked
    external storage path being replaced in middle of file parameters, not just at start
    action edit screen: external storage path replace only if has trailing slash (i.e. in /mnt/sdcard/... but not /mnt/sdcard-ext/...
    action Disable: if Tasker UI main screen showing, uncheck enabled button
    action Variable Search Replace: wasn't handling single array references in Variable parameter
    action Display Timeout: wasn't working in kid app (permission problem)
    action Run Shell: wasn't reading command output correctly (mangling non-ASCII chars)
    action Open File: upper case file extensions weren't being handled well in some cases
    calculated builtin variables (e.g. %TIME) now count as always 'set'
    app creation: wasn't analysing actions in menus for necessary permissions
    don't show var selector for file events (not handled)
    prevent toasts triggering Notification event in later Android versions
    don't complain about missing max freq file during CPU probing
    app creation: spurious error about missing storage related to SL4A scripts
    %select_indices was returning indices starting at 0 instead of 1
    empty scene task parameters (%select_indices etc) was leaving the old value in the scene variables
    menu scene element: Single selection mode wasn't changing selection status

    Changes

    Array Pop and Array Push send variable change broadcasts, but only for the specified array position
    plugin actions/state show their icon in the Plugin category, task edit screen, context list
    check and fix bad task references after data loads
    Timer Task: use red to signify paused
    Timer Task: update more frequently when display is on, only at end when off
    Scene Element actions: allow Scene and Element names specified with variables in any position
    tasks from the same profile (and their kids) always execute in time order (for handling rapid profile state changes, note instant profiles task specification order is now relevant)
    Array Clear sends clear broadcast for the array name (e.g. to trigger update of Menu elements)
    Take Photo: only acquire partial wakelock (no display) when Discrete checked, excepting eclair devices (device specific problem ?)
    Run Log: don't show multi-sequential Wait/WaitUntil entries caused by temporary interruption of the Wait by an event
    HTTP Get/Post: timeout parameter now also applied as connection timeout (not just data-read)
    more exception catching around CPU probing
    when a task dies, any children it spawned are inherited by it's parent, if it has one
    GPS: Get Location and Location context: accuracy has to be the same or worse twice in a row before fixing is terminated (instead of once)
    Variable Search Replace: don't trim Search and Replace params, whitespace may be part of expr.
    Variable Search Replace: Search and Replace With parameters, variables are replaced
    \%var is replaced with %var whenever variables are being replaced in a string
    \\%var is replaced with \ then the contents of %var whenever variables are being replaced in a string
    action Scene Element Text: don't trim whitespace from Text argument
    text related scene elements and actions, Zoom Element Text Size, decreased min text size to 8
    Vibrate On Ringer: available again in JB thanks to workaround
    state Profile Active / Task Running: each new selection appended with / (in UI)
    image action args: when switching to text box specification, fill in uri of previously selected image
     
Die Seite wird geladen...