ThisCalculator

Everyday

Change Default Program for Android File Types

Updated · Standard formula, shown below

Change Default Program for Android File Types

To change the default app that opens a specific file type on Android, you clear the app’s defaults in Settings or reset the app’s default action when prompted. This guide walks you through both methods, explains why Android assigns defaults, and covers common problems like missing options or apps that keep resetting.

Why Android Assigns Default Apps

Android uses a system called intent resolution to decide which app should handle a file type (e.g., PDF, image, audio, or document). When you open a file, the system checks if any app has claimed that file type as its default. If not, it shows a chooser dialog listing all compatible apps. If you tap “Always” or “Just once,” the system remembers your choice for future launches. This behavior is controlled by the Android package manager, which tracks default associations per app and per file type.

Each file type is identified by its MIME type (e.g., application/pdf for PDFs, image/jpeg for JPGs) and its file extension. Some apps register to handle many MIME types, while others only handle one. The default association is stored in the system settings, not in the file itself, so changing it is always possible—you just need to know where to look.

Method 1: Clear Defaults from App Settings

This is the most reliable way to change a default app. It works on all Android versions, though the exact menu names vary slightly by manufacturer and OS version.

  1. Open Settings on your device.
  2. Tap Apps (or Applications / App Manager).
  3. Select the app that is currently the default (e.g., a PDF reader, music player, or browser).
  4. Tap Open by default (or Set as default / Default apps).
  5. Tap Clear defaults (or Clear default actions).

After clearing, the next time you open a file of that type, Android will ask you which app to use. If you want to set a new default immediately, choose the new app and tap Always in the dialog. If you don’t see “Open by default” on the app’s page, the app may not have registered for any file types, or your device’s skin has moved it elsewhere—try searching for “default apps” in Settings.

Method 2: Reset Defaults via the Chooser Dialog

If you haven’t cleared defaults yet, you can sometimes change the default directly from the file manager or app that opens the file. This method works when the current default app is not the one you want, but you haven’t tapped “Always” yet.

  1. Open the file in any app (e.g., from a file manager or email attachment).
  2. Look for a button that says Open with, Share, or a three-dot menu.
  3. Tap Open with to bring up the chooser dialog.
  4. Select the app you want, and if you want it to be permanent, tap Always (or Use by default) before confirming.

This method only works if the current default is not locked. If the file opens directly in the wrong app without any prompt, you must use Method 1.

How to Set a New Default App from Scratch

If you know you want a specific app to handle a file type, you can set it directly without waiting for the chooser dialog. This is useful when you install a new app and want it to take over.

  • Open the new app and check its settings for a “Default” or “File associations” option.
  • Go to Settings > Apps > Default apps (on stock Android) and tap Opening links or Browser app to manage common types.
  • For file types, you may need to open a file of that type and choose the new app with “Always.”

Some apps, like PDF readers or music players, have a built-in “Set as default” button in their own settings. If not, the generic method above always works.

Common Problems and Fixes

Users often run into issues when trying to change defaults. Here are the most frequent ones and how to solve them.

  • “Open by default” is grayed out: The app may not have any default associations yet. Open a file of that type first, then try again.
  • No chooser dialog appears: Some file managers have their own “Open with” menu that bypasses the system dialog. Look for a share or open-with icon in the file manager itself.
  • Default keeps resetting after updates: App updates can sometimes clear or re-assert defaults. Re-apply your choice after updating the app.
  • Can’t find the file type in Settings: Android does not list file types directly; it only lists apps. You must clear the app’s defaults, not the file type.
  • Multiple apps claim the same file type: The chooser will list all of them. Pick the one you want and tap “Always.”

How Android Decides Which App to Use

When you open a file, Android sends an intent with the file’s MIME type and URI. The system then checks all installed apps that have declared support for that MIME type in their manifest. If exactly one app matches, it opens automatically. If multiple match, the system shows the chooser. If you’ve previously chosen “Always,” that app is treated as the sole match and opens without a prompt. This is why clearing defaults is the key step—it removes the “sole match” status.

Note that some apps, like file managers, may handle files with a custom viewer that doesn’t use the system chooser. In those cases, the file manager’s own settings may override the system default.

Safety and Privacy Considerations

Changing default apps is safe and reversible. However, be cautious when choosing “Always” for an app you don’t trust, especially for sensitive file types like documents or images. A malicious app could read the file and send it elsewhere. Always install apps from trusted sources like the Google Play Store, and review the permissions the app requests. If you accidentally set a wrong default, you can always clear it using Method 1.

Frequently Asked Questions

How do I change the default app for a specific file type like PDF?

Clear the defaults of the current PDF app (Settings > Apps > that app > Open by default > Clear defaults). Then open a PDF file and choose the new app, tapping “Always.”

Why does my Android keep asking me which app to use?

This happens when no default is set for that file type. If you want to stop the prompts, choose “Always” when the dialog appears. If it still asks, the app you choose may not support that file type fully.

Can I change defaults for all file types at once?

No, Android does not have a global “reset all defaults” button on most devices. You must clear each app’s defaults individually. Some manufacturers offer a “Reset app preferences” option in Settings > Apps, which resets all defaults, but it also resets other app preferences like notifications and permissions.

What if the app I want is not in the chooser dialog?

The app must be installed and must declare support for that file type in its manifest. If it’s not listed, the app cannot open that file type. Check the app’s description or contact the developer.

Does clearing defaults delete any app data?

No, clearing defaults only removes the file association. It does not delete app data, settings, or files. Your app remains exactly as it was, just without the default role.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.