×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    Regular Contributor
    Join Date
    Nov 2006
    Location
    Switzerland
    Posts
    476

    HOWTO for creating/adding an application's icon

    Hello

    I programmed a 3rd edition application with Carbide C++. When I initially created the project in Carbide, the application had an empty (transparent) icon by default. That's why I'd like change it now.

    Can someone explain me how to create and add an icon to a 3rd edition application? Or does someone have a good HOWTO for doing that?

    Thank you for your help!!!

  2. #2
    Regular Contributor
    Join Date
    Oct 2004
    Location
    india
    Posts
    306

    Re: HOWTO for creating/adding an application's icon

    u need to have a .svg files for app icon
    then mifconv to crete a icon file

    regards
    N

  3. #3
    Regular Contributor
    Join Date
    Nov 2006
    Location
    Switzerland
    Posts
    476

    Re: HOWTO for creating/adding an application's icon

    Currently, in the gfx-folder, I've two files:
    --> MyApp.mifdef
    --> qgn_menu_MyApp.svg

    In the pkg-file I've the line:
    "$(EPOCROOT)\Epoc32\data\z\resource\apps\MyApp.mif" -"!:\resource\apps\MyApp.mif"

    Do I have to replace the old svg-file in the gfx-folder now with the new one? What about the mifdef-file?
    And the conversion of the svg to the mif... isn't that be done automatically by Carbide C++ when building the project (because I've already one specified in the pkg-file...)?

  4. #4
    Regular Contributor
    Join Date
    Oct 2004
    Location
    india
    Posts
    306

    Re: HOWTO for creating/adding an application's icon

    CREATING MIF Files


    in epoc32\tools folder we have "mifconv" --this will convert svg icons to mif file


    syntax

    >mifconv MyApp.mif /c32 icondfile.svg

    get this MyApp.mif and include in ur package file
    in pkg file
    "$(EPOCROOT)\Epoc32\data\z\resource\apps\MyApp.mif" -"!:\resource\apps\MyApp.mif"

    regards
    N

  5. #5
    Regular Contributor
    Join Date
    Nov 2006
    Location
    Switzerland
    Posts
    476

    Re: HOWTO for creating/adding an application's icon

    Hmm, I just modified the original "qgn_menu_MyApp.svg" in Inkscape. Then I rebuilt the project once for the emulator and once for the final release.

    Now, I can see the new icon on the emulator. But that doesn't work for the release (SIS) on the phone... there the icon remains empty and transparent... I also converted the svg manually as you told me with mifconv and replaced the existing mif in "$(EPOCROOT)\Epoc32\data\z\resource\apps\MyApp.mif" with the new one. Doesn't work either...

    Do you have any idea on how to get rid of that problem??
    Last edited by patrickfrei; 2006-12-14 at 13:43.

  6. #6
    Registered User
    Join Date
    Aug 2006
    Posts
    31

    Re: HOWTO for creating/adding an application's icon

    Hi everybody.
    Did anyone solve the problem? I have the same situation here with E60 device.

    Cheers,

    LjubeX

    Quote Originally Posted by patrickfrei
    Hmm, I just modified the original "qgn_menu_MyApp.svg" in Inkscape. Then I rebuilt the project once for the emulator and once for the final release.

    Now, I can see the new icon on the emulator. But that doesn't work for the release (SIS) on the phone... there the icon remains empty and transparent... I also converted the svg manually as you told me with mifconv and replaced the existing mif in "$(EPOCROOT)\Epoc32\data\z\resource\apps\MyApp.mif" with the new one. Doesn't work either...

    Do you have any idea on how to get rid of that problem??

  7. #7
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,347

    Smile Re: HOWTO for creating/adding an application's icon

    Hello LjubeX,

    You would find a tool called "mifconv" in the epoc32/tools as giridhran said:

    For e.g:
    Now from command line:
    C:\...\tool\>mifconv MyNewApp.mif /c32 C:\Kiran\MyProject\gfx\qgn_menu.svg

    This will generate .mif into epoc32/tools folder.

    Now open your .pkg file and find for path of .mif file.
    Then just give path of your newly created .mif file. Like:

    "C:\Symbian\9.1\S60_3rd_MR\Epoc32\tools\MyNewApp.mif" -"!:\resource\apps\YourProjectNamed_reg.mif"
    You could either cut-paste your newly created .mif file into your folder and give its path in source path of your .pkg file. Like.
    "C:\MyFolder\MyNewApp.mif" -"!:\resource\apps\YourProjectNamed_reg.mif"
    EDIT: Here qgn_menu.svg has been redesigned in the Inkspace and replaced with the same name as qgn_menu.svg.
    Regards.
    Kiran.
    Last edited by kiran10182; 2007-01-07 at 14:15.

  8. #8
    Registered User
    Join Date
    Aug 2006
    Posts
    31

    Re: HOWTO for creating/adding an application's icon

    Hi Kiran,

    Well, actually, I'm doing exactly what you said. First, I've checked output from IDE, and I realized that ".mif" file is automaticly generated, but with the name:

    "Application_reg.mif" (not Application.mif)

    and that name is used later in ".pkg" file. When I make ".mif" by hand, I get the ".mif" which is exactly the same as the autogenerated one.

    The ".svg" file which I'm using is generated in Inkscape, saved as native svg (not Inkscape svg), and converted by svg2svgt. I'm using S60_3rd_MR and E60 device.

    But I've noticed one interesting behavior: First I have used the default icon, which I have found in one helloworld project, and It worked OK. When I put my icon, it didn't work (I've got no icon, the transparent area was shown instead of an icon). When I put back the original icon the transparent area remained. Seems like some "cache" was dirty due to my experiments.

    I'm realy going to lose my mind!

    Thanks

    P.S. Sorry for bad English

    Quote Originally Posted by kiran10182
    Hello LjubeX,

    You would find a tool called "mifconv" in the epoc32/tools as giridhran said:

    For e.g:
    Now from command line:
    C:\...\tool\>mifconv MyNewApp.mif /c32 C:\Kiran\MyProject\gfx\qgn_menu.svg

    This will generate .mif into epoc32/tools folder.

    Now open your .pkg file and find for path of .mif file.
    Then just give path of your newly created .mif file. Like:



    You could either cut-paste your newly created .mif file into your folder and give its path in source path of your .pkg file. Like.


    EDIT: Here qgn_menu.svg has been redesigned in the Inkspace and replaced with the same name as qgn_menu.svg.
    Regards.
    Kiran.

  9. #9
    Registered User
    Join Date
    Aug 2006
    Posts
    31

    Re: HOWTO for creating/adding an application's icon

    Unbelievable !!!

    I just restarted the phone and the icon showed ! But here is the problem: Whenever I supply some new icon, it is not shown until the phone is restarted. Till that moment, the old icon is taking place. It is not so big problem, I guess that it happens because of some cache on the phone. Also I guess that when the application comes on the phone for the first time, it won't happen. But it's only guessing.

    Any idea?

    Thanks

    Quote Originally Posted by kiran10182
    Hello LjubeX,

    You would find a tool called "mifconv" in the epoc32/tools as giridhran said:

    For e.g:
    Now from command line:
    C:\...\tool\>mifconv MyNewApp.mif /c32 C:\Kiran\MyProject\gfx\qgn_menu.svg

    This will generate .mif into epoc32/tools folder.

    Now open your .pkg file and find for path of .mif file.
    Then just give path of your newly created .mif file. Like:



    You could either cut-paste your newly created .mif file into your folder and give its path in source path of your .pkg file. Like.


    EDIT: Here qgn_menu.svg has been redesigned in the Inkspace and replaced with the same name as qgn_menu.svg.
    Regards.
    Kiran.

  10. #10
    Registered User
    Join Date
    Mar 2003
    Posts
    6

    Re: HOWTO for creating/adding an application's icon

    Same here. I always reboot the phone after loading a new icon/app.

    It's obviously caching the old icon.

  11. #11
    Regular Contributor
    Join Date
    Jan 2005
    Location
    Estonia
    Posts
    350

    Re: HOWTO for creating/adding an application's icon

    I also got some grey hair to figuring out why the icon doesn't change on phone when it works on Emulator.
    It would be nice if future phones would work little better in that area.

  12. #12
    Regular Contributor
    Join Date
    Sep 2005
    Posts
    126

    Re: HOWTO for creating/adding an application's icon

    Hi,
    I have developed my appl. in v7.0 and now i am porting the same to 9.1 so i have only .bmp icons so i am trying to build my application icons using bmp so what r the steps that i have to follow for building my app icon.

    IS there any tool for converting bmp to svg so that i could use mifconv to build mif files frm svg files.

    Thanks in advance.

  13. #13
    Registered User
    Join Date
    Feb 2007
    Location
    Bangalore
    Posts
    73

    Re: HOWTO for creating/adding an application's icon

    hi rihio ,

    When the bmp or mbm files are not properly installed the phone or it is not added .pkg files this is frustration generaly we see,to make it work properly remove the object code of earlier build and try build ing it and then see the change.
    Kishore K
    kishore@teamingineers.com

  14. #14
    Registered User
    Join Date
    Mar 2007
    Location
    India
    Posts
    13

    Re: HOWTO for creating/adding an application's icon

    hi friends,

    i have made an application for s60 3rd Edition & s60 3rd Edition fp1.

    i put app. icon on both,

    app. icon working on s60 3rd edition fp1 but in 3rd edition it doesnt show any icon and simly show transparent screen of white color.

    what can be the problem?

  15. #15
    Registered User
    Join Date
    Aug 2003
    Posts
    1

    Re: HOWTO for creating/adding an application's icon

    Having battled with this problem for too long I sympathise. If you look at the previous thread the answer is there, but I'll clarify what I believe the issue to be.
    1. The tools (Carbide 1.1 at least) do not properly create the MIF file from the mifdef in the project. You would probably be best just disabling the mifdef in the build and doing it manually.
    2. Although you do the command line process - "mifconv project.mif /c32 path\icon.svg" and copy to the resource/apps, you'll probably overwrite it if you don't disable the mifdef in the build and then run the Carbide build! Watch the names of the .mif files.

    I spent a number of days not knowing what was going on here - or indeed what the .mif was supposed to contain. Once you have seen a proper .mif file content you realise that it contains the svg code for the icons (suppose it had to have some way of drawing it, but the point is that the developer at that point doesn't really know what a good .mif file looks like or whether the problem is to do with content of the .svg, the icon_file declaration or the build or what? There seems too little information on the Symbian or Nokia forums about this problem.

    Hope this helps others get around this rather difficult to solve problem.

Similar Threads

  1. N80 midlet icon problem revisited... questions
    By kounapuu in forum Mobile Java General
    Replies: 1
    Last Post: 2006-10-07, 20:15
  2. how to change my applications icon
    By gs_cmans in forum Symbian
    Replies: 4
    Last Post: 2006-02-17, 18:52
  3. Applications crashing in Cingular-branded 6682. Feedback appreciated.
    By Razor1973 in forum General Development Questions
    Replies: 3
    Last Post: 2006-01-27, 13:11
  4. Replies: 4
    Last Post: 2005-07-18, 09:20
  5. cannot reset fax icon
    By gfsmith in forum General Messaging
    Replies: 2
    Last Post: 2004-12-25, 12:19

Posting Permissions

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