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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:02:05+00:00 2026-06-03T16:02:05+00:00

I have an app that sends files with custom file extensions via email that

  • 0

I have an app that sends files with custom file extensions via email that are essentially just encrypted xml files. My app has an intent filter to open these, and it works on my particular phone (Samsung Galazy S Mesmerize), but when I try to open an attachment with my custom file extension on some other phones (Electrify, Thunderbolt, etc) it says there isn’t anything that can open that file. (BTW the phones that are trying DO have my app installed).

Here is my intent-filter:

<intent-filter>
  <action android:name="android.intent.action.VIEW" />
  <category android:name="android.intent.category.DEFAULT" />
  <data android:scheme="file" />
  <data android:mimeType="*/*" />
  <data android:pathPattern=".*\\.tgtp" />   
  <data android:host="*" />
</intent-filter>

Is there anything I can do to ensure that all android phones will be able to open my custom file extension when they have my app installed?

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-03T16:02:09+00:00Added an answer on June 3, 2026 at 4:02 pm

    I guess it depends on the path the files are located at on your other devices. I found that the pathPattern attribute in the intent filter is very sensitive to the full path of the file.

    Take a look at the following answer for a similar question:
    https://stackoverflow.com/a/7102838/624109

    Basically, you need to have several pathPattern attributes that will most likely capture the location of your file.

    Another thing is that I think that even if you use local files, you still need to have the port attribute.

    These two changes are what made it work for me after hours of digging around.

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

Sidebar

Related Questions

i have an app that sends out email but i have to only send
I have an app that sends upwards of 1,000 emails to clients. Each email
I have an app that sends multiple Ajax requests simultaneously. I was originally running
Suppose I have a client side app that sends out requests to a rails
A theoretically question: I have a C# Windows Form app, that sends back some
Have an app that has listings - think classified ads - and each listing
I have an app that needs to read a PDF file from the file
I am trying to create an app that sends a video file to a
I have a windows exe app that used to sends packets to a server
The app makes calls (utilizing HttpPost) to a PHP files that sends a queries

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.