×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    14

    Thumbs up Please help with AIF file...

    Hello Everybody!

    I am desperately trying to make my program display a customized icon instead
    of the default jigsaw one.
    I have successfully made my mbm file, but other than that I am at loss.
    (mbm file contains now a 42x29 icon and mask, and a 44x44 icon and mask)
    I am using the Borland C++BuilderX IDE, and have no clue as to how to
    achieve my goal.

    Could someone be so patient as to give me straightforward step-by-step
    instructions both on what to write in the various files, AND how to have them
    compiled the right way?

    I've been reading through tons of docs before posting, but I found it all a bit
    confusing, and nothing of what I tried worked.

    Thanks in advance,

    Alex
    Last edited by alex80it; 2006-02-08 at 10:23. Reason: Problem solved!

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Please help with AIF file...

    just place thiss stuff into a file named My_App.rss (where My-App, is your applications executable name)

    //--start of My_App.rss

    #include <aiftool.rh>

    RESOURCE AIF_DATA
    {
    app_uid=0x11111111;// change to your app UID
    caption_list=
    {
    CAPTION { code=ELangEnglish; caption="My App"; }
    };

    num_icons=2;

    embeddability= KAppNotEmbeddable;
    hidden=KAppNotHidden;
    newfile= KAppDoesNotSupportNewFile;
    }

    //-- end of My_App.rss

    Then just use command line tools to make the aif :
    aiftool My-App My-App.mbm

    The My-App.mbm, needs to have small icon first, then mask for it and then the bigger icon and as last its mask.

    yucca

  3. #3
    Registered User
    Join Date
    Feb 2006
    Posts
    14

    Re: Please help with AIF file...

    Okay, I did this and the AIF file gets created.

    I even found the AIF Wizard in BCBX, which basically guided me through the
    same procedure as you told me with a sequence of dialog boxes.
    The problem is not yet solved, though, because when I put the app on
    my phone it keeps its default jigsaw icon in the menu, and when I try to run it
    it just goes back to the main menu without displaying anything at all.
    If I browse to the app's folder and simply erase the .aif that got copied there,
    the app goes back to working normally...

    I own a Nokia 3230, and that's the platform I'm testing on...

    I can't use the epoc emulator for this, as I am using RFs and RFile in my app,
    which give me a linker error if I build for UDEB (while the file I/O part works
    perfectly if I build for UREL)

    Thanks for your reply, and for any further help... :)

    Alex

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Please help with AIF file...

    it should work, as long as you have excatly same UID defined in your aif rss-file, in your mmp file as well as your app returns same UID.

    Further on, you should have same name with your app folder as you have with your aif & app files.

    Then the resulting AIF file should work, so if you still have problems, try defining whole path with aiftool when building the aif file.

    yucca

  5. #5
    Registered User
    Join Date
    Feb 2006
    Posts
    14

    Re: Please help with AIF file...

    I checked all of that, and even tried setting up a blank project just to
    put an icon on it.
    Doing NOTHING with it except creating its AIF with mbm and this rss file:

    Code:
    #include <aiftool.rh>
    
    CHARACTER_SET UTF8
    
    RESOURCE AIF_DATA
    
    {
    
        app_uid = 0x1000003;
    
        num_icons = 4;
    
        embeddability=KAppNotEmbeddable;
    
        newfile=KAppDoesNotSupportNewFile;
    
        hidden=KAppNotHidden;
    
        caption_list=
    
        {
    
    
    
            CAPTION { code=ELangEnglish; caption="IconTest2"; },
            CAPTION { code=ELangGerman; caption="IconTest2"; }
    
        };
    }
    Which was generated automatically, so I figure it's correct.
    If I run my IconTest2 program on the emulator without making the AIF, it obviously
    works (displays a blank screen), but if I add the AIF to the project it doesn't
    start, just flips back to the menu, without displaying any errors (behaving just
    like my cell phone, so it's not a specific model's compatibility problem)

    I am doing this using Series 60 SDK 2.1, is there any known issue about this?

    Thanks for your patience! :)

    Alex
    Last edited by alex80it; 2006-02-08 at 10:11.

  6. #6
    Registered User
    Join Date
    Feb 2006
    Posts
    14

    Thumbs up Re: Please help with AIF file...

    Problem solved, I hadn't noticed it kept insisting on 4 icons, whereas they were
    2 icons and 2 masks!!
    I changed it to 2, and it works!

    Thanks a million, Yucca!
    :D

    Alex

Similar Threads

  1. File reading & writing help, wav file redaing help
    By shubhamlahoti in forum Mobile Java General
    Replies: 6
    Last Post: 2007-06-27, 09:07
  2. Series 60 SDK Appwizard on windows xp
    By moonjoor in forum Symbian Tools & SDKs
    Replies: 15
    Last Post: 2003-12-24, 10:22
  3. Extract contents of AIF file
    By heuven in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2003-12-01, 16:48
  4. File Associations and OMA download
    By nicktest in forum Digital Rights Management & Content Downloading
    Replies: 1
    Last Post: 2003-10-21, 15:38

Posting Permissions

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