In this tutorial you'll learn how to open a voice recording app when a microphone is connected to your Android device, but you can apply this in any situation where you connect a USB device to your Android device.
STEP 1 - CREATE PROFILE
- Create a new profile with the AutoTools Connectivity event condition
- Press the Edit Configuation button
- Verify that no configuration is needed for this condition and check that there are a bunch of variables available to you
STEP 2 - OPEN VOICE RECORDING APP IF MICROPHONE CONNECTED
This will make Tasker launch the voice recording app if the %atmanufacturer variable has the word MICROPHONE in it, which may not be the case for your microphone. To find out which text to look for in your case, perform the following step
- Add a new Launch App action and select the voice recording app you want
- Set the If condition to only launch if %atmanufacturer matches regex MICROPHONE
This way, even if your manufacturer doesn't match the word MICROPHONE you'll be able to see what the word to look for is
- Add a Flash action with the text set to %atmanufacturer
STEP 3 - TEST
- Exit Tasker to save
- Connect a USB device to your Android device with an OTG cable
- Check that a flash is created with the name of the device's manufacturer
- Check that the voice recording app opens if the manufacturer matches the word MICROPHONE
Open Voice Recorder App when connecting USB Microphone
Learn how you can react to a USB device being connected to your Android Device