Using Android’s Built‑In QR Code Scanner for Links and Shortcuts
9 min read
Learn step‑by‑step how to scan QR codes with Android’s native scanner, open URLs instantly and launch custom shortcuts without third‑party apps.
September 25, 2026 04:30
Introduction
Most Android smartphones ship with a QR code scanner that is integrated into the system UI—often powered by Google Lens or the Camera app. Unlike third‑party scanners, the built‑in solution respects the device’s privacy settings, works offline, and can be linked to Android Shortcuts for simple automation. This tutorial walks you through enabling the scanner, scanning a code, opening the embedded URL, and attaching the scan to a custom shortcut that can launch an app, toggle a setting, or run a routine.
What You Need
- A device running Android 9 (Pie) or newer. The native scanner is available on most Pixel, Samsung, OnePlus, and OEM devices that include Google Camera or a system‑wide QR feature.
- Camera permission granted to the system scanner.
- The Shortcuts app (pre‑installed on most Android 12+ devices) or a compatible launcher that supports shortcut creation.
- An internet connection for the first scan if the QR code contains a URL you wish to open, though the scanner itself works offline.
Step 1: Verify the Built‑In QR Scanner Is Available
- Open the Camera app.
- Switch to the Photo mode and look for a QR‑code icon (often a small square with a diagonal line) in the viewfinder toolbar. On Pixel devices it appears as a “Lens” icon; on Samsung it may be labeled “Scan QR code”.
- If you do not see the icon, tap the three‑dot menu → Settings → Advanced features → enable Scan QR codes or Google Lens.
- Confirm that the camera asks for permission to access the camera. Grant it.
Once enabled, the scanner will automatically recognize QR patterns in the viewfinder and display a preview banner with the decoded content.
Step 2: Scan a QR Code and Open Its Link
- Point the camera at the QR code. Hold steady until a rectangle appears around the code.
- A banner pops up showing the URL or text. Tap the banner to open the link in your default browser, or tap Copy to place the text on the clipboard.
- If the QR contains a vCard, Wi‑Fi configuration, or a payment request, Android will present the appropriate action (e.g., “Add contact”, “Connect to Wi‑Fi”).
Because the scanner runs locally, no data is sent to Google unless you choose to open a web address. This keeps the operation private.
Step 3: Create a Shortcut That Launches When a QR Code Is Scanned
Android’s Shortcut framework lets you bind a custom action to a specific intent. By using the android.intent.action.VIEW intent with a data URI that matches the QR content, you can trigger an app or a system setting directly from the scan.
3.1. Install a Shortcut‑creating helper (optional)
If your device’s native Shortcuts app does not expose a “Create shortcut from URL” option, install a lightweight helper such as Shortcut Maker from the Play Store. The app is free, open‑source, and does not require root.
3.2. Define the shortcut
- Open the Shortcuts app and tap the + button.
- Select Custom shortcut → Activity.
- In the Action field, choose
android.intent.action.VIEW.
- Enter the exact URL that appears in the QR code (e.g.,
https://example.com/quick‑mode) as the Data URI.
- Give the shortcut a name, e.g., “Open Quick Mode”.
- Optionally assign an icon.
- Save the shortcut.
Now, when the QR scanner detects that exact URL, tapping the banner will launch the shortcut instead of the browser, because Android resolves the intent to the most specific match (your custom shortcut).
3.3. Test the shortcut
- Print or display a QR code that contains the exact URL you used.
- Scan it with the built‑in scanner.
- When the banner appears, tap it. The associated app or action should open immediately.
Step 4: Automate Multiple Actions with a Single QR Code
If you want a QR code to trigger more than one action—such as turning on Wi‑Fi and launching a music app—you can use the Tasker app (or the open‑source LibreTask) to listen for the android.intent.action.VIEW intent and then chain tasks.
- Install Tasker from the Play Store.
- Create a new Profile → Event → Intent Received.
- Set the Action to
android.intent.action.VIEW and the Data to the QR URL.
- Attach a Task that includes the desired actions (e.g., Wi‑Fi On, Launch Music).
- Save the profile.
Scanning the QR code now runs the whole chain without any further user interaction.
Step 5: Security and Privacy Considerations
- Verify the source: QR codes can embed malicious URLs. Always preview the banner before tapping.
- Limit shortcut exposure: Shortcuts that handle custom URLs are visible to any app that can send an
android.intent.action.VIEW. Use a unique, hard‑to‑guess URL if the action is sensitive.
- Camera permission: The built‑in scanner requires camera access. Revoking this permission will disable scanning but will not affect other camera functions.
- Battery impact: Continuous scanning is not active; the camera processes frames only when you open it, so the battery cost is negligible.
Step 6: Troubleshooting Common Issues
| Problem | Solution |
| Scanner does not recognise QR code | Ensure the code is well‑lit and not too small. Clean the camera lens. Some OEM skins hide the scanner behind a “Lens” toggle—enable it in Camera settings. |
| Tap on banner opens browser instead of shortcut | Check that the URL in the shortcut matches the QR exactly, including “https://”. If multiple apps can handle the intent, Android may show a chooser; set your shortcut as the default by tapping “Always” when prompted. |
| Tasker profile never fires | Confirm that Tasker has the “Accessibility” permission and that the profile is enabled. Test with a simple “Flash” task to verify the intent is received. |
Advanced Tips
- Dynamic QR codes: Use a service that generates QR codes with a short, random URL that redirects to a stable endpoint. This lets you change the final action without re‑printing the code.
- Combine with NFC: Pair a QR code with an NFC tag for redundancy—scan the QR when the device’s NFC is off, and tap the tag when NFC is on.
- Use “Quick Settings” tile: Android 12+ lets you add a custom Quick Settings tile that launches your shortcut directly, giving you a one‑tap alternative to scanning.
Conclusion
Android’s built‑in QR code scanner is more than a simple reader; it can act as a bridge between the physical world and your device’s automation ecosystem. By enabling the scanner, creating a matching shortcut, and optionally linking it to Tasker, you can turn a printed QR code into a powerful trigger for apps, settings, and routines—all without installing extra scanning apps. Keep security in mind, test your shortcuts thoroughly, and enjoy the convenience of instant, on‑device actions.