Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3492990
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:49:37+00:00 2026-05-18T11:49:37+00:00

When clicking a file in any filebrowser the user usually gets to choose from

  • 0

When clicking a file in any filebrowser the user usually gets to choose from a list of which app to open it with.

How can I add my program to this "Complete action using…" list, so that the file can be opened in my app?

I know this has to be added to the manifest somehow, but I can’t find what to add.

RESULT:

I followed the answers I got here and made it work with this code:

<intent-filter android:label="MyApp">
<action android:name="android.intent.action.VIEW" />
<action android:name="com.MyApp.action.EDIT_NOTE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
<data android:pathPattern=".*txt" />
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T11:49:38+00:00Added an answer on May 18, 2026 at 11:49 am

    An example of how to link to doc, xls or pdf file extensions:

    <activity android:name="ActivityTest" android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="http" />
                <data android:pathPattern=".*doc" />
                <data android:pathPattern=".*xls" />
                <data android:pathPattern=".*pdf" />
            </intent-filter>
            </activity>
    

    You can also create the filter for specific Mime types. More info: http://d.android.com/guide/topics/intents/intents-filters.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm unable to add an mdf database file by right clicking on the project
After clicking on a UIView I want to take the user of my app
Currently on clicking on export user is prompt a box to save/open the export
The following code fetch all data (by clicking a.info link) from a php file
In visual studio, we can open a file in a #Include statement by right
I am tired of clicking File and then Save Page As in Firefox when
When clicking on the text box part of an <input type=file /> in FireFox3,
Upon clicking on a link, I am bringing in some images from a JSON
While clicking outside modal window(iframe), it gets closed that's not suitable for forms etc..
This file isn't executing in any browser other than firefox on mac. Added everything

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.