meta data for this page
  •  
Index Key Link
action Click to view
add Click to view
affiliation Click to view
align Click to view
alignment Click to view
alpha Click to view
analog clock Click to view
animated image Click to view
app drawer Click to view
app group Click to view
application Click to view
audio Click to view
background Click to view
backup Click to view
beginner Click to view
behavior Click to view
blur Click to view
calendar Click to view
card Click to view
checklist Click to view
circle indicator Click to view
clean slate Click to view
clock Click to view
code block Click to view
code of conduct Click to view
color picker Click to view
communities Click to view
compass Click to view
compatibility Click to view
complementary color Click to view
conceptual learning Click to view
configure Click to view
contact Click to view
contrast Click to view
contribute Click to view
date Click to view
date / time Click to view
default launcher Click to view
delete Click to view
desktop Click to view
developer Click to view
discussion guideline Click to view
distribution Click to view
drawer Click to view
drawer handle Click to view
dual-screen Click to view
dynamic color Click to view
dynamic image Click to view
dynamic text Click to view
edit Click to view
editing Click to view
edit mode Click to view
export Click to view
feature Click to view
file naming Click to view
flip-style Click to view
foldable Click to view
folder Click to view
font Click to view
full screen Click to view
gaussian Click to view
gesture Click to view
getting started Click to view
gradient Click to view
group Click to view
heading Click to view
help Click to view
hide Click to view
html Click to view
hue Click to view
icon Click to view
import Click to view
install Click to view
installation Click to view
instructable Click to view
intellectual property Click to view
issue Click to view
key Click to view
keys & gestures Click to view
label Click to view
landscape mode Click to view
launcher action Click to view
layout Click to view
liability Click to view
lifetime purchase Click to view
light source Click to view
link Click to view
list Click to view
luminance Click to view
macro Click to view
macrodroid Click to view
margin Click to view
mask Click to view
media controller Click to view
mobile Click to view
month/year/day Click to view
move Click to view
multi-screen Click to view
namespace Click to view
navigation Click to view
object Click to view
object design menu Click to view
official Click to view
official blog Click to view
offset Click to view
option Click to view
ordinal Click to view
page Click to view
page indicator Click to view
paste Click to view
performance Click to view
permission Click to view
pin Click to view
png Click to view
quoting Click to view
radius Click to view
registration Click to view
reminder Click to view
remove Click to view
resource Click to view
rotate Click to view
rss Click to view
save Click to view
scroll Click to view
search Click to view
select Click to view
shadow Click to view
shape Click to view
share Click to view
sidebar Click to view
slider Click to view
sliding drawer Click to view
spacing Click to view
stretch Click to view
syntax Click to view
system setting Click to view
system ui Click to view
table Click to view
table of content Click to view
tasker Click to view
taxonomy Click to view
temperature Click to view
termination Click to view
terms of use Click to view
text Click to view
theme Click to view
toby Click to view
trademark Click to view
transform Click to view
transparency Click to view
transparent Click to view
troubleshooting Click to view
typeface Click to view
ui Click to view
user conduct Click to view
user interface demo Click to view
variable Click to view
wallpaper Click to view
warranties Click to view
weather Click to view
webp Click to view
website Click to view
welcome Click to view
widget Click to view
wiki Click to view
wiki editing Click to view
window Click to view

====== Total Launcher-Tasker Integration: Automate Actions Based on Time Since Last App Opened ======

Tracking exactly how long it has been since a specific application was opened is a powerful way to level up Android customization and automation. Whether building an advanced home screen layout or managing daily habits, this Total Launcher-Tasker integration tutorial will show exactly how to calculate the time gap between app launches. By configuring a simple profile to capture a timestamp variable, it will generate the exact data needed to trigger custom dynamic actions. Here is how to set up the background time-logging process.

  • Step 1: Log into Tasker

Create a profile that saves the current time to a variable ('%SoMe') every time the user opens the target application.

  1. Once in Tasker, tap the Profiles tab to open the Profile dialog and then tap the + button (bottom right) to create a new profile. It will be automatically named, but the name can be edited later.
  2. From the drop-down dialog, select Application.
  3. Scroll through the application listing to find and select the app or apps to monitor (in this example, a selection of Telegram is made), which will highlight the app. This listing includes only apps installed on the user's device.
  4. Tap the back arrow (top left).
  5. Tasker will now show a dialog drop-down of all existing Tasker actions.
    1. Tap New Task.
    2. In the input dialog, enter the name of the task (here it is TaskSoMe) and tap the checkmark to accept it.
  6. Now in the Task Edit screen, tap the + button (bottom right) to add an action.
    1. In the Select Action Category dialog, select Variables
    2. In the Select Variables Action dialog, select Variable Set.
      1. Set the Name to %SoMe. There can only be alpha-numeric characters or underscores, no spaces or other special characters. There must be at least one capital letter to make the variable global and be retained by Tasker.
      2. Set the To field to %TIMES. This is a built-in variable and must be in all capitals as shown.
  7. ​Tap the back arrow (top left) to save this task.
  8. ​Tap the back arrow again to exit the profile setup.
    1. The profile now shows its name with an * (*Telegram)
      1. This can be changed to any user-desired meaningful name. That will not be done here, but this is how to do it:
        1. Tap and hold the existing name (*Telegram) to highlight it.
        2. A menu at the top of the dialog opens. The first selection is . Select it.
          1. In the input dialog, enter the desired name and tap the checkmark.

A profile has been created that updates the %SoMe variable with the current time (in seconds) every time Telegram is opened.

  • ​Step 2: In Tasker, Calculate Time & Send to Total Launcher

Create a second profile that runs every minute to: * Calculate the time since the app was last opened. * Send that calculation to Total Launcher.

  1. ​Remain in Tasker in the Profiles tab and tap +.
  2. ​From the drop-down dialog, select Event
    1. Select System
    2. Select Tick
      1. ​Set the Interval (ms) to 60000 (which is 60,000 milliseconds, or 1 minute), which will be the update frequency.
    3. Tap the back arrow
  3. Tasker will now show a drop-down dialog which lists all existing tasks.
    1. Tap New Task
    2. Name the task LastChecked and tap the checkmark.
  4. In the Task Edit dialog, add two actions to this task:
    1. ​Action 1 (Calculate Time):
      1. ​Tap + to add the first action.
      2. ​From the Select Action Category dialog listing
        1. Select Variables
        2. Select Variable Set.
          1. Set Name to %LastChecked
          2. Set To to round((%TIMES-%SoMe)/60)
          3. Check the box for Do Maths.
          4. Tap the back arrow.
    2. Action 2 (Send to Total Launcher):
      1. Tap + to add the second action.
      2. From the Select Action Category dialog listing
        1. Select Plugin
        2. Select Total Launcher
        3. Select Send variable.
      3. ​Tap the Configuration item's pencil icon to configure it.
      4. In the Send Variable dialog
        1. Tasker variable: enter: %LastChecked
        2. Variable name in Total Launcher: taskerLastChecked
        3. Tap OK
      5. Tap the back arrow to save the action.
  5. ​Now back in the main Tasker screen, tap the back arrow again to save the entire task profile.
    1. Again, if desired, the profile named *Tick 60000 can be renamed (see above step …)

Tasker is now fully set up. The object will not display the timer results (only the static text) until the target app is opened for the first time. Once that occurs, then every 60 seconds it calculates the minutes since the app last opened and sends that number to a Total Launcher variable named taskerLastChecked.

  • Step 3: In Total Launcher, Display the Data

​Tasker is now sending the data, but Total Launcher needs an object to receive it. Create the “widget” in Total Launcher to “catch” and display it.

  1. ​On the Total Launcher home page, long-press an empty space or pinch to enter edit mode.
    1. A page/screen other than Home can be selected by scrolling left or right to the desired page and then performing the above step. However, the intent of this project is to observe how much time has lapsed since last opening an app, and the home page is the most logical location since the typical user has called it “home”
  2. Tap the + button (top right).
  3. In the Add dialog
    1. Select Graphic
    2. In the Graphic dialog, choose Text. This will create a text-based object.
  4. The Action On Tap dialog opens. Select Nothing or Default.
  5. The new object on the page is now selected​.
    1. Move it and resize it as desired. object_moving
  6. With the text box still selected, tap the cogwheel icon (top 3rd from the left) to open its options.
  7. Select Text
    1. In the Text dialog, scroll to the bottom of the list and select Variable. Tap OK.
  8. In the Edit dialog, tap the list item Text field
    1. In the input dialog, remove the default text
    2. Then type in the text to be displayed on the screen widget. Use the exact variable name which was set in Tasker (Step 2.4.b.IV.B)
    • ​An example would be: Last checked: <taskerLastChecked> mins ago
  9. Tap OK and exit the Edit dialog by swiping right to left
  10. Now on the home page with the new “widget” selected
    1. Ensure the entire text object contents are visible. If not:
      1. Tap the Options icon in the top menu
      2. Select Font size
        1. Change size by changing the number or using the slider, then tap OK
        2. Exit the Edit dialog by swiping right to left
    2. The initial display of the object will require at least 60000 ms (1 minute) to properly display and may require some additional adjustments for:
      1. single or multi-line format (object sizing)
      2. centering within the object boundaries (alignment)
  11. To exit Edit mode, tap Edit ON in the lower left screen corner.

Finished! The Total Launcher screen widget will now automatically update every minute with the value received from Tasker.

Discussion

Enter your comment. Wiki syntax is allowed:
Please solve the following equation to prove you're human. 246 +3 =