×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Mar 2007
    Posts
    104

    Smile Custom App Icon?

    Hello everyone,

    i am trying to get a custom Application Icon to show for my application but its not working.

    I read the S60 Scalable UI Support SDK Docukment and followed the instructions but all i get is the standard application Icon:-(

    Here is what i do:

    I have two Bitmaps in the ./Bitmap folder

    IconLarge.bmp and IconMedium.bmp

    i have a Icons_aif.mk file:


    Code:
    ifeq (WINS,$(findstring WINS, $(PLATFORM)))
    ZDIR=\epoc32\release\$(PLATFORM)\$(CFG)\Z
    else
    ZDIR=\epoc32\data\z
    endif
    
    
    TARGETDIR=$(ZDIR)\RESOURCE\myapp
    ICONTARGETFILENAME=$(TARGETDIR)\myapp_AIF.MBM
    
    do_nothing :
    @rem do_nothing
    MAKMAKE : do_nothing
    BLD : do_nothing
    CLEAN : do_nothing
    LIB : do_nothing
    CLEANLIB : do_nothing
    
    RESOURCE :
    mifconv $(ICONTARGETFILENAME) \
    /c12 IconLarge.bmp \
    /c12 IconMedium.bmp
    
    FREEZE : do_nothing
    SAVESPACE : do_nothing
    RELEASABLES :
    @echo $(ICONTARGETFILENAME)
    FINAL : do_nothing
    i have a bld.inf file:

    Code:
    PRJ_PLATFORMS
    WINSCW ARMV5 GCCE
    
    PRJ_MMPFILES
    
    myapp.mmp
    
    gnumakefile icons_aif.mk
    i have a _reg file:

    Code:
    #include <appinfo.rh>
    #include <myapp.rsg>
    
    UID2 KUidAppRegistrationResourceFile
    UID3 0xE01F98B1
    
    RESOURCE APP_REGISTRATION_INFO
    {
    app_file = "myapp";
    localisable_resource_file = "resource\\apps\\myapp";
    localisable_resource_id = R_myapp_LOCALISABLE_APP_INFO;
    }
    and i have this in my .rss file:

    Code:
    RESOURCE LOCALISABLE_APP_INFO r_myapp_localisable_app_info
    {
      short_caption=string_myapp_shortcaption;
      caption_and_icon=
      CAPTION_AND_ICON_INFO
      {
        caption=string_myapp;
        number_of_icons = 2; //1 for SVG
        icon_file = "\\Resource\\Apps\\myapp_AIF.MBM";
      };
    }

    i have the following mmp file:


    Code:
    TARGET                                  myapp.exe 
    TARGETTYPE                              exe 
    							
    CAPABILITY								ReadDeviceData NetworkServices WriteDeviceData ReadUserData 
    UID										0x100039CE 0xE01F98B1
    
    LANG                                    SC EN GE 
    
    SOURCEPATH                              ..\Source 
    SOURCE                                  myapp.cpp 
    SOURCE                                  Application.cpp 
    SOURCE                                  UI.cpp 
    SOURCE                                  Document.cpp 
    SOURCE                                  SplashView.cpp 
    SOURCE                                  SplashViewContainer.cpp 
    SOURCE                                  TitleView.cpp 
    SOURCE                                  TitleViewContainer.cpp 
    SOURCE                                  CharactersView.cpp 
    SOURCE                                  CharactersViewContainer.cpp 
    SOURCE                                  LoginView.cpp 
    SOURCE                                  LoginViewContainer.cpp 
    SOURCE                                  MapView.cpp 
    SOURCE                                  MapViewContainer.cpp 
    SOURCE                                  NetworkApp.cpp 
    SOURCE                                  Preferences.cpp 
    SOURCE                                  Network.cpp 
    SOURCE                                  Communication.cpp 
    SOURCE                                  GameCommunication.cpp 
    SOURCE                                  LoginCommunication.cpp 
    SOURCE                                  Map.cpp 
    SOURCE                                  Sprites.cpp 
    SOURCE                                  Player.cpp 
    SOURCE                                  bitmapmethods.cpp 
    SOURCE                                  Utils.cpp 
    SOURCE                                  SMSEngine.cpp 
    
    START RESOURCE    myapp.rss
    HEADER
    TARGETPATH resource\apps
    END //RESOURCE
    
    START RESOURCE    myapp_reg.rss
    TARGETPATH 	  \private\10003a3f\apps
    END //RESOURCE
    
    USERINCLUDE                             ..\Source 
    SYSTEMINCLUDE                           \epoc32\include 
    SYSTEMINCLUDE                           \epoc32\include\libc 
    START BITMAP myapp.mbm			
      TARGETPATH                              ..\..\..\..\winscw\c\resource\apps
      HEADER                                   
      SOURCEPATH                              ..\Bitmaps 
      SOURCE                                  c12 Presents.bmp 
      SOURCE                                  c12 Splash.bmp 
      SOURCE                                  c12 Title.bmp 
      SOURCE                                  c12 Intro.bmp 
      SOURCE                                  c12 Background.bmp 
      SOURCE                                  c12 Body.bmp 
      SOURCE                                  c12 Menu.bmp 
      SOURCE                                  c12 Output.bmp 
      SOURCE                                  c12 Input.bmp 
      SOURCE                                  c12 Message.bmp 
      SOURCE                                  c12 Shop.bmp 
      SOURCE                                  c12 Depot.bmp 
      SOURCE                                  c12 List.bmp 
      SOURCE                                  c12 Banks.bmp 
      SOURCE                                  c12 Statics.bmp 
      SOURCE                                  c12 Items.bmp 
      SOURCE                                  1 ItemsMask.bmp 
      SOURCE                                  c12 Creatures.bmp 
      SOURCE                                  1 CreaturesMask.bmp 
      SOURCE                                  c12 Effects.bmp 
      SOURCE                                  1 EffectsMask.bmp 
      SOURCE                                  1 Letters.bmp 
      SOURCE                                  1 LettersFrame.bmp 
      SOURCE                                  c12 Symbols.bmp 
      SOURCE                                  1 SymbolsMask.bmp 
      SOURCE                                  c12 Controls.bmp 
      SOURCE                                  1 ControlsMask.bmp 
    END  
    
    LIBRARY                                 euser.lib 
    LIBRARY                                 apparc.lib 
    LIBRARY                                 cone.lib 
    LIBRARY                                 eikcore.lib 
    LIBRARY                                 avkon.lib 
    LIBRARY                                 insock.lib 
    LIBRARY                                 esock.lib 
    LIBRARY                                 fbscli.lib 
    LIBRARY                                 bitgdi.lib 
    LIBRARY                                 efsrv.lib 
    LIBRARY                                 estor.lib 
    LIBRARY                                 etext.lib 
    LIBRARY                                 eikctl.lib 
    LIBRARY                                 etel.lib 
    LIBRARY                                 bafl.lib 
    LIBRARY                                 msgs.lib 
    LIBRARY                                 smcm.lib 
    LIBRARY                                 gsmu.lib 
    LIBRARY                                 eikcoctl.lib 
    LIBRARY                                 eikdlg.lib 
    LIBRARY									gdi.lib 
    LIBRARY									etel3rdparty.lib
    
    
    VENDORID	  	  0

    does anyone have an idea what i am doing wrong? The application works just fine i just cant get a custom icon to work:-)

    would be happy for any hints:-)

  2. #2
    Super Contributor
    Join Date
    Oct 2005
    Location
    Hyderabad,India
    Posts
    1,156

    Re: Custom App Icon?

    i would ask you to use .svg icons rather than bmp's.
    you could get more details in this thread.

    http://discussion.forum.nokia.com/fo...00&postcount=7

    Priju

  3. #3
    Regular Contributor
    Join Date
    Mar 2007
    Posts
    104

    Re: Custom App Icon?

    I read that thread and thats why i read the SDK document.

    Why would switching to .svg solve my problem?

    in the document it states code for both .svg and .bmp so switching to svg i would think it would take me right to the point i am at right now

    the file myapp_AIF.MBM is never being built though:-(

    nm solved it:-)

    added this to my mmp file:

    Code:
    START BITMAP myapp_AIF.MBM
    	TARGETPATH \resource\apps
    	HEADER
    	SOURCEPATH                              ..\Bitmaps
    	SOURCE									c12 IconMedium.bmp 
    	SOURCE                                  1 IconMediumMask.bmp 
    	SOURCE									c12 IconLarge.bmp 
    	SOURCE                                  1 IconLargeMask.bmp 
    END
    Last edited by Rozik; 2007-04-02 at 11:34.

Similar Threads

  1. Replies: 7
    Last Post: 2007-09-05, 10:38
  2. symbian signed testing problem.
    By anglina in forum Symbian
    Replies: 0
    Last Post: 2007-02-01, 10:15
  3. N80 midlet icon problem revisited... questions
    By kounapuu in forum Mobile Java General
    Replies: 1
    Last Post: 2006-10-07, 20:15
  4. Replies: 7
    Last Post: 2006-09-22, 03:27
  5. Icon causes system error on 3650 app
    By ickalminx in forum Symbian User Interface
    Replies: 1
    Last Post: 2004-05-22, 17:56

Posting Permissions

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