Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Trusted Contributor
Posts: 118
Registered: ‎06-19-2012
My Device: PlayBook + Red Z10 + BB10 Dev Alpha C
Accepted Solution

mime types

I've registered the mime type "application/x-chess-pgn" in my bar file, but still get "Unable to open the file" from the browser, when trying to open a PGN file. How do I find out which mime types are defined?

Developer
Posts: 1,625
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: mime types

please provide the complete InvocvationTarget you defined in your bar-descriptor

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner http://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner
Trusted Contributor
Posts: 118
Registered: ‎06-19-2012
My Device: PlayBook + Red Z10 + BB10 Dev Alpha C

Re: mime types

<invoke-target id="eu.marcelnijman.pgn">
<invoke-target-name>Chess-wise</invoke-target-name>
<icon>
<image>icon.png</image>
</icon>
<type>application</type>
<filter>
<action>bb.action.OPEN</action>
<mime-type>application/x-chess-pgn</mime-type>
</filter>
</invoke-target>

Developer
Posts: 1,625
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: mime types

and the client from wgere you want to open the app does provide the mime-type ?

 

or only the URI without mime-type ?

then try to define another filter providing the file suffixes you support

 

BTW: use the Invocation Client from Cascades-Samples at Github to try out different queries - then you can easy test if your APP is listed as target

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner http://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner