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

Java Development

Reply
New Developer
JKoder
Posts: 4
Registered: ‎03-25-2009
My Device: Not Specified

Register application for specific files

Hello everyone.

I have a small question for you.

Is there any way i can register an application to open a specific file ?

 

An example: i have an email with a csv file inside. Normally Blackberry cannot open it. So i have my application that can open that file but i want to open when i open the attachement.

So blackberry will forward the request to open the file to my application.

 

Can this be done ?

Thank you.

Please use plain text.
Developer
Eugen
Posts: 467
Registered: ‎07-16-2009
My Device: Z10 LE
My Carrier: Vodafone NL

Re: Register application for specific files

There are AttachmentHandler and AttachmentHandlerManager classes in API.

 Also you can take a look on the ContentHandler class.

 

Thanks,

Eugen

Please use plain text.