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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:20:31+00:00 2026-05-27T12:20:31+00:00

I have made my own filetype (.mmd). This filetype i have saved some data

  • 0

I have made my own filetype (.mmd).
This filetype i have saved some data in, and would like, when a file of this type is selected to have it open in my app, in the subactivity called openMeasurement.

My manifest has been altered so the activity has the following properties, which i got from another thread. But it doesn’t seem to be enough

<activity android:name="OpenMeasurement">
        <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" android:host="*"
                android:pathPattern=".*\\.mmd" />
            <data android:scheme="https" android:host="*"
                android:pathPattern=".*\\.mmd" />
            <data android:scheme="content" android:host="*"
                android:pathPattern=".*\\.mmd" />
            <data android:scheme="file" android:host="*"
                android:pathPattern=".*\\.mmd" />
        </intent-filter>
    </activity>

What am i doing wrong\Forgetting anyone that can help?
-Thanks a bunch in advance.

Edit 1:
Might it be because i am only debugging on my real phone and hence not installing and getting all the specific requirements, really shouldn’t be like this, I’d like a few comments on it if you think so aswell.
——Edit3—Seems like it does register the “open filetype” on the phone even when in “debug mode”, Since i could register it for a .pdf file

Edit 2:
Ok i tried to split it up, deleted the HTTP schemes since i deem them unnecessary.
Now code looks like this:

    <activity android:name="OpenMeasurement">
        <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="content" />
            <data android:host="*" />
            <data android:pathPattern=".*\\.mmd" />
        </intent-filter>
        <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="file" />
            <data android:host="*" />
            <data android:pathPattern=".*\\.mmd" />
        </intent-filter>
    </activity>

And it still doesn’t open, nor give the choice too, when i choose my file (using “My Files”)

Have also tried using double escapes in pathpattern (“.*\\.mmd”) didnt help either.

Edit 4:
Also tried to add:

<data android:mimetype="*/*"/>

But still no joy :’-(

  • 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-27T12:20:32+00:00Added an answer on May 27, 2026 at 12:20 pm

    It isnt doable in the general case, as the intent mechanism is working with MIME types and you can only use the predefined MIME types.

    See http://code.google.com/p/android/issues/detail?id=11112

    So: You cannot make it work in a local file explorer, like ASTRO, as it probably works as described in ACTION_VIEW intent for a file with unknown MimeType – ie using the build-in MimeTypeMap.

    However, if the files are on the web, as the web browser URL opening mechanism can be intercepted, as described in http://groups.google.com/group/android-developers/browse_thread/thread/d79bfa05528cbbee#

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

Sidebar

Related Questions

I have made my own file type (.ddd) and I made a simple program
I have made a user control in asp.net c#. Becuase of some data I
I like to create a file full of custom functions which I have made,
I have made a SVG image, or more like mini application, for viewing graphs
I have made some code which exports some details of a journal article to
I have made my own custon vtype which performs an ajax request to check
I have made my own single chained/linked list. Now, if I want to delete/remove
I have made a simple experimental language of my own. I want make Eclipse
There is an open source project to which I have made modifications. I don't
I have a double linked list (queue) I have made on my own. I

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.