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 3986322
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:59:52+00:00 2026-05-20T05:59:52+00:00

I still haven’t quite got this Intent thing down when it comes to the

  • 0

I still haven’t quite got this “Intent” thing down when it comes to the details. What I’d like to do is to receive an intent when a certain email attachment is opened. The attachment will be a file that is actually an SQLite database with a structure specific to my app, and with a file extension that is also specific to my app.

What I’ve noticed in experimenting with this is that, when I send the file attachment from my PC (using Thunderbird), it is coded with a MIME type of “application/octet-stream”. When I try to open this on my Android phone (using K-9 mail), it tells me that there is no app for “application/octet-stream”.

So what do I do in my app to be recognized as a servicing app for this particular type of attachment, especially since I expect it’s not a good idea to try to open anything with this MIME type.

  • 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-20T05:59:52+00:00Added an answer on May 20, 2026 at 5:59 am

    So what do I do in my app to be recognized as a servicing app for this particular type of attachment, especially since I expect it’s not a good idea to try to open anything with this MIME type.

    You don’t.

    Inventing new documents as email attachments doesn’t work well pretty much anywhere. Android is just a notch worse in this regard.

    You cannot realistically set up an ACTION_VIEW <intent-filter> by MIME type, because your MIME type is too general. You cannot set up an ACTION_VIEW <intent-filter> by file extension, because there is no file extension on email attachments as is processed by the AOSP email app, and perhaps other email clients as well.

    I encourage you to abandon email attachments as a delivery vector for your files, and find some other solution where you can have a customized MIME type (e.g., download the files from a Web server, with the emails containing a link to the files). Then, an ACTION_VIEW <intent-filter> by MIME type can work OK.

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

Sidebar

Related Questions

I got asked this question once and still haven't been able to figure it
Although I feel like this question has been beat to death. I still haven't
I've run into this scenario quite a few times and still haven't found the
I am using Eclipse for quite some time and I still haven't found how
I've always wondered this, and still haven't found the answer. Whenever we use cout
I haven't yet implemented this, I'm still in the thinking stage, but I have
I have been scratching my head all morning behind this but still haven't been
I've been searching a lot on this the past couple days but still haven't
This question gets asked a lot, but I still haven't found a straight answer
I've been searching for hours and still haven't found an answer to this. How

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.