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
Contributor
Posts: 41
Registered: ‎09-27-2010
My Device: Not Specified

how to open a file programatically, which can be view directly from message application

Hi,

In My application I am getting specific email attachments and displaying through my application, I am using the following code to open

Invocation invocation = new Invocation(attach.getLocalPath());
					invocation.setAction(ContentHandler.ACTION_OPEN);
					invocation.setResponseRequired(false);
					Registry registry = Registry.getRegistry(Application.getApplication().getClass().getName());
					registry.invoke(invocation);

 

 

there are few file formats like odt and rar, which can be view directly from message application(as email attachments), but not after downloading to file system. I am getting no handler found exception while opening with this code.

 

how I can open those files?