[android-developers] Re: unknown mimetypes and file managers...

2011-03-24 Thread Zsolt Vasvari
I looked once, and the valid MIME types are hardcoded somewhere in the
system.  I believe it's in the internal com.android.* package.

On Mar 24, 4:29 pm, mort m...@sto-helit.de wrote:
 I'd like to handle a file extention (.m3u8) which has no registered
 MIME mapping for the extention, when the file is opened in a file
 manager/explorer. But no matter what I try, the file managers I tried
 aren't able to open the file with my app. Is this something that is
 generally impossible in Android, are the file managers poorly
 programmed, or am I doing something wrong?

 This is my current state in manifest.xml:
 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:mimeType=*/* /
   data android:pathPattern=.*\\.m3u8 /
 /intent-filter

 I also tried without BROWSABLE and/or host, because I thought that
 might be only for browser downloads, but it didn't change anything.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: unknown mimetypes and file managers...

2011-03-24 Thread Zsolt Vasvari
Sorry, the class is:

android.webkit.MimeTypeMap

On Mar 24, 4:29 pm, mort m...@sto-helit.de wrote:
 I'd like to handle a file extention (.m3u8) which has no registered
 MIME mapping for the extention, when the file is opened in a file
 manager/explorer. But no matter what I try, the file managers I tried
 aren't able to open the file with my app. Is this something that is
 generally impossible in Android, are the file managers poorly
 programmed, or am I doing something wrong?

 This is my current state in manifest.xml:
 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:mimeType=*/* /
   data android:pathPattern=.*\\.m3u8 /
 /intent-filter

 I also tried without BROWSABLE and/or host, because I thought that
 might be only for browser downloads, but it didn't change anything.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en