Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>I'm struggling to associate my app with a particular file type (.stl).</p> </blockquote> <p>Generally, Android does not use file extensions to indicate type. Android uses MIME types to indicate type.</p> <blockquote> <p>When trying to launch a file from a file manager, my app isn't one of the options suggested.</p> </blockquote> <p>Well, the only guaranteed-solid answer is:</p> <p>Step #1: Determine the MIME type that <code>.stl</code> files are associated with</p> <p>Step #2: Use that MIME type in your <code>&lt;activity&gt;</code> element for the <code>android:mimeType</code> attribute</p> <p>Step #3: Force each and every file manager author to implement support for your MIME type for when they encounter <code>.stl</code> files</p> <p>Step #3, of course, is the problem.</p> <p>Android, like iOS and other operating systems, are trying desperately to hide the concept of "files" from the user. That is why there is no file manager built into Android, why few devices bundle one, and why there is little support for the concept in the OS.</p> <p>You are welcome to try to use <code>&lt;data android:scheme="file" android:pathPattern=".*\\.stl" /&gt;</code> in your <code>&lt;data&gt;</code> element to support things based on file extension, though I'm not sure if that works well. You might also need <code>android:host="*"</code> in that element -- Android itself does not use <code>pathPattern</code> for the <code>file</code> scheme, and the third-party code I am examining shows the element both ways. Again, I have no idea if it works.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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