Note that there are some explanatory texts on larger screens.

plurals
  1. PODatafiletype (custom) wont open im my app
    text
    copied!<p>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.</p> <p>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</p> <pre><code>&lt;activity android:name="OpenMeasurement"&gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.VIEW" /&gt; &lt;category android:name="android.intent.category.DEFAULT" /&gt; &lt;category android:name="android.intent.category.BROWSABLE" /&gt; &lt;data android:scheme="http" android:host="*" android:pathPattern=".*\\.mmd" /&gt; &lt;data android:scheme="https" android:host="*" android:pathPattern=".*\\.mmd" /&gt; &lt;data android:scheme="content" android:host="*" android:pathPattern=".*\\.mmd" /&gt; &lt;data android:scheme="file" android:host="*" android:pathPattern=".*\\.mmd" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; </code></pre> <p>What am i doing wrong\Forgetting anyone that can help? -Thanks a bunch in advance.</p> <p>Edit 1:<br> 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 </p> <p>Edit 2: Ok i tried to split it up, deleted the HTTP schemes since i deem them unnecessary. Now code looks like this:</p> <pre><code> &lt;activity android:name="OpenMeasurement"&gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.VIEW" /&gt; &lt;category android:name="android.intent.category.DEFAULT" /&gt; &lt;category android:name="android.intent.category.BROWSABLE" /&gt; &lt;data android:scheme="content" /&gt; &lt;data android:host="*" /&gt; &lt;data android:pathPattern=".*\\.mmd" /&gt; &lt;/intent-filter&gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.VIEW" /&gt; &lt;category android:name="android.intent.category.DEFAULT" /&gt; &lt;category android:name="android.intent.category.BROWSABLE" /&gt; &lt;data android:scheme="file" /&gt; &lt;data android:host="*" /&gt; &lt;data android:pathPattern=".*\\.mmd" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; </code></pre> <p>And it still doesn't open, nor give the choice too, when i choose my file (using "My Files")</p> <p>Have also tried using double escapes in pathpattern (".*\\.mmd") didnt help either.</p> <p>Edit 4: Also tried to add:</p> <pre><code>&lt;data android:mimetype="*/*"/&gt; </code></pre> <p>But still no joy :'-(</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload