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
Highlighted
Contributor
Posts: 32
Registered: ‎10-03-2011
My Device: 9900
My Carrier: developer

contenthandler action send with text files

hi every one , can any one help me out of this problem . i got stuck in code how to access content handler action send with text files

.It is supporting .png, .bmp, .mp4 etc. I want it to work for .txt or my custom format like .git. 

Here is my code.

 

String[] types = {"image/bmp", "image/png", "image/jpeg", "video/3gpp","video/mp4","text/txt"};
String[] suffixes = {".bmp", ".png", ".jpg", ".3GP", ".mp4",".txt"};
String[] actions = {ContentHandler.ACTION_SEND};
String[] actionNames = {"Open With MY APP"};

 

I want to know whether it works with .txt or .custom extension. If it works how?

Thanks in advance