If your smartphone or tablet has a fingerprint reader, chances are that its uses are limited. Apart from a few added benefits in the Google Pixel or Huawei smartphone line-up, most fingerprint readers on Android only serve to unlock your device. Fortunately, with the power of Tasker and a few plug-ins, we are able to considerably extend the functionality of the fingerprint scanner. Previously, I did a tutorial on how to assign custom fingerprint actions and make it context dependent. At the time, I only demonstrated how you could cast the current tab to your PC. In this tutorial, I will provide some additional examples of ways you can take advantage of a context-aware fingerprint reader.

But what if your phone doesn't have a fingerprint reader? Even if you don't have one on your phone, don't worry, as we can adjust the scripts to work just as well with an onscreen button. I will even demonstrate how to replicate this set-up with a fully transparent onscreen button, as well! XDA Senior Member Flextrick has updated the Fingerprint Scanner Tools with better Tasker integration, so here are my favorite custom fingerprint actions. At the end of each section, I will provide the Tasker summary for those of you who want to replicate the set-up on your own (and learn along the way), but if you would rather simply download all of the scripts mentioned in this article I've provided a download link at the end.

You will need:

Android version: 6.0+ (Used 7.0),

Apps: Join (or AutoRemote), Fingerprint scanner tools (Tasker support need to be unlocked)

Needs: Fingerprint Reader


Cast the current Chrome window (Updated)

In the previous article, I demonstrated how you can cast the currently opened Chrome webpage to your PC using Join. Since I published that article, I've come up with a few changes that I thought would improve its functionality. While the profile alone does exactly the same thing, I've updated the task to cast the page to the selected PC based on what WiFi is connected or an input selected from a dialog. I have also added a toggle to enable then disable the AutoInput accessibility service, as these accessibility services tend to slow down your phone. To do so, I have added a Secure Settings accessibility toggle action as the first and last action in the task. If you struggle to get the Secure Settings plug-in on Android 7.0+ working, look at my solution here or check the run shell options from here.

WiFi Connected Context

WIFI context

Unless you can get the location values from another profile, you will need to create two additional profiles. One will set the variable %Location to home, another to work. Create the profile, WiFi connected, fill in your home SSID, and link the task which will set the variable %Location to home. Do the same for your work WiFi.

Now that we have that part ready, we can update our original task by simply adding an IF condition to the Join Send Push action. A push to the correct device will be issued depending on our %Location variable, which we set based on a WiFi Connected profile as mentioned above.

Dialog Context

Dialog

If you have multiple PCs you would like to cast to in a single network, perhaps a dialog would be a better option for you. I'm going to use AutoTools to generate a dialog which will consist of names of the PCs that you can cast the current Chrome webpage to. Once clicked - the website will be sent only to that PC. If you are going to use just the dialog, you don't need to recreate the profiles from above. All you need to do is add the AutoTools Dialog action to your task. Populate the names with your home devices and assign commands to each option. These commands will be stored in a variable %atcommand. Once pressed, the variable will be set, and we can trigger the correct Join Push action. Each Join Push action will have a matching IF condition (%atcommand ~ home or work etc).


WhatsApp - Continue conversation on the PC

screenshot_20161204-151223Here's a new one we've cooked up in the lab. Holding a Whatsapp conversation on your phone is great for quick back and forth messages, but sometimes you would rather hop on to your PC to type out longer responses. As such, I've created a very simplistic, yet very useful profile that will get WhatsApp's online interface up and running on your PC so you could continue your conversation. If you have more than one PC, feel free to link this to a WiFIi Connected context or create a dialog like we did in the previous example.


Facebook - Open Facebook on a PC

screenshot_20161204-151227In a very similar fashion, we can continue our Facebook browsing on our PC if you're getting tired of scrolling your feeds on your mobile device. In the same way as before, we'll point our PC to the URL of Facebook's desktop site via a Join push. Of course, feel free to again modify this by adding a WiFi Connected context or a dialog for multiple devices.


Maps - Navigate home, or to your favorite location

A one click 'Take me home' button can save some time and frustration, especially when you're in a hurry. Although you can create a launcher shortcut to start Google Maps navigation, some users would prefer not to clutter their home screen with additional icons. When Google Maps is open, we can pass an intent to ask Google to take us home (requires the "Home" location in Google Maps to be set or a hard-coded address in the variable). If you wish to have a few favorites to choose from like 'work' or 'Las Vegas', we can also link a dialog.

With a quick press of a button, an Intent action is sent. This will open Google Maps and set 'home' as your destination. Simple!

Favorite Locations

screenshot_20161204-151503Create a dialog with AutoTools, and fill in a list of locations. You can use places like home or work, cities, or specific addresses. List them separated with commas. The AutoTools dialog will populate the variable %attext when the option is pressed. This option will be passed over to the intent, in the data field: google.navigation:q=%attext . The intent: android.intent.action.VIEW  will take you to your destination.


Hangouts - Quick reply Templates

screenshot_20161204-151421I know I seem to love the AutoTools Dialog action, but that's because it provides a very useful feature that can be applied in a wide range of Tasker scripts. In this case, we will use a dialog to quickly populate the clipboard with a quick-reply template. Once the selection is made, you can paste your text message or reply in seconds. No need for typing.

We will use an array to store our messaging templates in. To create an array, use Variable Set and list your options separated by a comma. You will then perform a Variable Split by the comma and will then be able to list the array in an AutoTools dialog! Make sure it is a global array (contains an upper case letter in the name) as local arrays will disappear. The AutoTools Dialog will take the %Templates() array in the text field and will populate your list with options. All you need to do now is use the Set Clipboard action to store the value of %attext.

To help you out, I kept the array actions for you in the description. Once you have create an array of template responses you can delete A1 and A2 actions from your task. If you wish to modify your template response array in the future, simply go to the 'Variables' tab in Tasker and look for the %Templates variable.


Camera - Delayed Shutter

screenshot_20161204-151245I always find it uncomfortable to use the camera for selfies. Scanning your finger to take a picture is perhaps not the greatest solution, however you can set a timer which will allow you to get your hand in position to take a much better picture.

To give ourselves a warning, the Android voice engine will count down for us with the action Say. After this - use the action Button - Camera to take the picture with the main camera. No need to play with the timers or reaching out for a button.


YouTube - Cast video to PC

screenshot_20161204-151324Owning a smart TV has made me realize that casting a YouTube video to a PC is unnecessarily difficult. Unless your PC has the YouTube page open in a TV mode, the cast option is not available. Fortunately, we can enable the option using the fingerprint scanner. This is yet another simple, but useful profile. All we will be doing is opening the YouTube TV page on our PC via Join Push, and you can then cast your current video to your PC! So simple!


Fingerprint Sensor Alternative

screenshot_20161204-151206

If you don't have a sensor, the same behavior can be reproduced with an overlay, by making an invisible scene that will act exactly the same way as scanning your finger. Place it in a fixed location, so you would know where to tap (or long tap) and execute the following:

Scanned Finger

A1: Variable Set [ Name:%FingerScanned To:1 Do Maths:Off Append:Off ]

A2: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]

A3: Variable Set [ Name:%FingerScanned To:0 Do Maths:Off Append:Off ]

You can make the button visible, but I found it a little distracting especially when watching videos.  Select all applications that would support the use of the button by creating a profile which will show and destroy the scene.


You can download the entire Project by following the download link below. After downloading the Project XML file, you can import it by opening up Tasker then long-pressing on the Home icon at the bottom left. This will bring up the Tasker Project menu, which will allow you to import Projects located on the internal storage.

Download the Context Aware Fingerprint Reader Project

I'm keen to see what other uses you could come up with. Let me know and I will update this post.