×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    3

    How to add MIME TYPE?

    I have Nokia 6600 terminal. I'd like to add the new MIME type.

    For examplem, If threr is *.aaa file,

    When a user clicks *.aaa file by file manager, the special application must be launched.

    How do I make the file manager recognize *.aaa file and it launch the special applicatin?

    Have a nice day.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166
    never really done the mime mapping to applications ever by my self, but if I remember right you should define in your aif file all of the mime types and their priorities you wish the application to be used for.

    Then you just make a recognizer that regognizes the files that are your mime type.

    yucca

  3. #3
    Regular Contributor
    Join Date
    Feb 2005
    Posts
    68
    Hi Yucca,
    How can i programatically determine the application, which will open a specific file.
    For example if i have a recognizer which will open a .doc file. How can i open the document using the default application programatically.

    i think i am not confussing you.

    arun

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166
    you could try this:
    TThreadId aId;
    RApaLsSession ls;
    User::LeaveIfError(ls.Connect());
    CleanupClosePushL(ls);

    ls.StartDocument(aFileName,aId);

    CleanupStack::PopAndDestroy(1); // ls

    yucca

  5. #5
    Regular Contributor
    Join Date
    Mar 2005
    Location
    Bangalore,India
    Posts
    306
    u have to use recongnizer...search SDK for recongnizer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×