opensubscriber
   Find in this group all groups
 
Unknown more information…

p : palm-dev-forum@news.palmos.com 15 April 2008 • 10:35PM -0400

Re: How to register a new file type?
by Doug Reeder

REPLY TO AUTHOR
 
REPLY TO GROUP





On Apr 15, 2008, at 3:25 AM, Edward Jones wrote:
> if ExgRegisterDatatype(Creator, exgRegExtensionID, ExtToRegister,  
> 'My Recv', 0) <>errNone then
>     FrmCustomAlert(InfoAlert,'Can not register data','','');
>
> Set ExtToRegister to the extension you want to register without the  
> '.' so my zLib files are 'ZL'. 'My Recv' is how you identify yourself.
>

A note on a pet peeve of mine: the fourth argument to  
ExgRegisterDatatype ('My Recv' above) is displayed to the user in  
beaming and Bluetooth confirmation dialogs.  Please make sure it  
adequately describes the file type to the end user.  If you register  
two or more distinct types of of files, be sure to give them  
different names, so the user understands what the file will be  
treated as.

The application "Documents To Go" registers the description  
"DocumentsToGo" for MS-Word, , Excel, and PowerPoint files.  The  
applications "Media" on the Treo 650 and "Pics & Videos" on the 700p  
register the description "Image File" for GIFs, JPEGS, TIFFs, AVIs,  
MPEG-1s, and 3GPs.    The application "Voice Memo" on the Treo 700p  
registers the description "Voice memo content / " for all of the  
types it accepts.  The application "Resco Viewer" registers the  
descripton "Photos" for all of the types it accepts.   It's  
disappointing to see such sloppy work in otherwise well-written  
applications.


If you're debugging a problem with the Exchange Manager, my utility  
VFS Exchange may be of help:
http://www.download.com/VFS-Exchange/3000-2363_4-10537992.html


--
For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.