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

  • Home
  • SEARCH
  • 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 8304807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:56:26+00:00 2026-06-08T17:56:26+00:00

I see around it’s a recurring question regarding ACTION_SEND and which filters to use,

  • 0

I see around it’s a recurring question regarding ACTION_SEND and which filters to use, but I can promise I searched for this.

The app development is going fine and for my testings until now I’ve been using images and videos:

        <intent-filter>
            <action android:name="android.intent.action.SEND" />
            <data android:mimeType="image/*" />
            <data android:mimeType="video/*" />
        </intent-filter>

but now I would like to expand the app to accept ANY file (no matter what type it is), contacts (there’s an option to share contact on the Contacts app) and URL (usually sent from the Browser).

for the URL I saw people using the Text before <data android:mimeType="text/plain" /> but I sounds to me like a very generic approach for a very specific char sequence.

any ideas?
thanks!

  • 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-06-08T17:56:28+00:00Added an answer on June 8, 2026 at 5:56 pm

    I found out how to do it:

    from this thread: https://stackoverflow.com/a/10161863/906362

    <intent-filter>
        <action android:name="android.intent.action.SEND" />
        <category android:name="android.intent.category.DEFAULT"/>
        <data android:mimeType="application/*" />
        <data android:mimeType="audio/*" />
        <data android:mimeType="image/*" />
        <data android:mimeType="message/*" />
        <data android:mimeType="multipart/*" />
        <data android:mimeType="text/*" />
        <data android:mimeType="video/*" />
    </intent-filter>
    

    Why it needs the category.DEFAULT I don’t know, but without it, it will only work for the gallery.

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

Sidebar

Related Questions

I've been looking around to see if you can use footer like this: <form>
I've look around and see a few plugins that do this, but I'm surprised
This is probably impossible but i thought i would ask around and see if
There is a new style of implemention menues which I see around stylish web
Around the web I see people posting things like this: 2012-03-12 10:26:32.495 squirrels[330:707] cocos2d:
I'm looking around trying to see if anybody has asked this before. I don't
I've been hunting around to see if I can find a simple CSS or
Scroll down to the bottom of this post to see a work around /
I've had a look around to see if this has been answered, and there
I have see some discussion around this topic and concluded that it is not

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.