There’s nice app on Android called Tasker. It allows you to automate everything on your phone, e.g:

  • pause music playback while in particular application;
  • change all your home icons and wallpaper every day, or in particular locations.

aTimeLogger for Android is integrated with it. You can do different actions with activity types.

Quick Start

Let’s see how it works step by step.

  1. Start tasker and go to tasks tab
  2. Press ‘+’ and enter task name
  3. On ‘Task Edit’ screen press on ‘+’, go to ‘Plugin’ and select ‘aTimeLogger’
  4. Go to configuration edit (edit icon on the right) – aTimeLogger edit screen will appear. Select activity type, action and comment (optional) and save.

Let’s say we have action ‘Stop running and start activity’ for ‘Music’ type. You can create profile that will start the action when you start listening to music.

Actions

The following actions are available:

  • Stop running and start activity iterates through paused/running activities, if activity of selected type is not running it stops other running/paused and starts the activity

  • Pause running and start activity iterates through paused/running activities, if activity of selected type is not running it pauses other running and starts the activity

  • Start iterates through paused/running activities, if activity of selected type is not running it starts the activity. Please note that in this case other running activities continue to run

  • Start or resume is the same as ‘Start’ but if activity of selected type is paused it will resume it

  • Stop iterates through paused/running activities and stops activity of selected type

  • Pause iterates through running activities and pauses activity of selected type

Comment variables

Comment field support variables. If the comment you entered in aTimeLogger plugin configuration includes variable it will be automatically replaced with variable value if it exists.

For example you want your music activity to include track name. Tasker has built in variable %MTRACK. If comment value in plugin configuration is ‘Listening to %MTRACK’ then if you start listening to Beethoven’s Symphony 9 activity with comment ‘Listening to Beethoven – Symphony 9’ will be created

Future plans

Current implementation only allows Tasker to send action messages to aTimeLogger but not receives it. In future I’m going to add aTimeLogger to send messages (e.g action started/stopped or goal reached) to Tasker – just give me some time

If you have any idea – please share in comments or discuss it in G+ community or Facebook page

This Saturday I decided to move from Google Blogger to Octopress blogging engine. Old articles are still available here.

Why Octopress?

  • It’s much lighter. I have more control over how the blog looks like
  • Version control
  • I was just bored and needed to change something

There’s nice article about Octopress on Tuts+

P.S. Will try to fill it with useful content ASAP