Testing the Revised Widget
Tasker lacks any type of traditional programming debugging tools. As such, we have to rely on old-fashioned brute-force testing of running the script over and over again until it produces the desired response. In the case of our widget, we need to set up the onscreen widget, initiate the countdown, observe the results, and modify until the intended outcome is achieved. We will begin by hooking up the tasks we wrote to a home-screen widget.
Creating our widget on the home screen is similar to the way we did it earlier. But this time, instead of selecting Tasker’s Task Timer widget, we’re going to choose Tasker’s Task widget. Upon doing so, Tasker’s Task Selection dialog will pop up onscreen. Locate and select the ...
Get Developing Android on Android now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.