I would avoid using wildcard MIME types for specific files like this.
For example, there might be an audio player that only handles OGG, not
MP3 -- the ACTION_VIEW shown here would still offer that OGG-only
player as an option, which would then break.
For selection Intents, like an ACTION_GET_CONTENT, wildcard MIME types
are fine, AFAIK. But for cases like this, I would use the fully
qualified MIME type, sans wildcard.
On Sun, Apr 10, 2011 at 8:05 AM, lbendlin <lutz@bendlin.us> wrote:
> I was about to send you a lmgtfy link...
>
> http://www.androidsnippets.com/open-file-with-default-application-using-intents
>
> --
> 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+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
Android Training in Oslo: http://bit.ly/fjBo24
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment