Wednesday, October 31, 2012

Use tasker to create simple applications

Tasker is a powerful tool for Android phones/tablets. It is actually a programming language (without language) that can obtain full control of your device. I am a beginner and just tried a simple task: input arxiv identifier, and let tasker download the paper.

 First create a scene (with name arxiv-get). Add TextEdit element, with "Text Changed" task: "Variable Set" -> Name %arxivId to %new_val .

 Then call this scene: Add a task doing the following things:

 (1) Show Scene. Name: arxiv-get;

 (2) HTTP Get. Server: arxiv.org; Path: pdf/%arxivId; Output File: Download/%arxivId.pdf

(3) Open File. File: Download/%arxivId.pdf

 Choose a icon and add a task shortcut. That's it.

No comments:

Post a Comment