User Tag List

Results 1 to 9 of 9

Thread: Including SVG icon to JAR file

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    MJK's Avatar
    Join Date
    Jun 2006
    Location
    Espoo, Finland
    Posts
    1,162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Including SVG icon to JAR file

    Each JAR file compiled in MMF2 has icon.png. What I'd like to do is to include also icon.svg to the jar package and then put this line to the JAD file:

    Code:
    Nokia-Scalable-Icon-MIDlet-1: /icon-inside-jar.svg
    That would make my app to use scalable svg icon on the devices I'm developing for, which looks much better than the bitmap icon. The bitmap icon is never used in 100% size, it's either larger or smaller and looks very rough.

    Is it possible?

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Including SVG icon to JAR file

    Well, open the JAD, add the line, rename the JAR to ZIP, put your icon-inside-jar.svg in it and rename it back to JAR. That should do it.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    MJK's Avatar
    Join Date
    Jun 2006
    Location
    Espoo, Finland
    Posts
    1,162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Including SVG icon to JAR file

    Thanks, it worked.

    I highly recommend this technique for developers who are developing for S60 phones or others supporting svg. Svg icons look so much better than the bitmaps, and if the phone doesn't support svg, it shows the bitmap icon instead. For some phones, you will need to convert the svg file to svgt (svg-tiny) to make it appear.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    DTownTony's Avatar
    Join Date
    Sep 2010
    Location
    Detroit
    Posts
    428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Including SVG icon to JAR file

    Does anyone know a way to do this with the .jad /.cod files for a BlackBerry build? or just a way to use the larger icon size when exporting?

  5. #5
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)
    BackStaged's Avatar
    Join Date
    Aug 2010
    Location
    France
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Including SVG icon to JAR file

    Quote Originally Posted by MJK
    Thanks, it worked.

    I highly recommend this technique for developers who are developing for S60 phones or others supporting svg. Svg icons look so much better than the bitmaps, and if the phone doesn't support svg, it shows the bitmap icon instead. For some phones, you will need to convert the svg file to svgt (svg-tiny) to make it appear.
    Sorry to ask this.. but.. what is SVG icons (and how to create it via a .png per example?)

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    MJK's Avatar
    Join Date
    Jun 2006
    Location
    Espoo, Finland
    Posts
    1,162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Including SVG icon to JAR file

    Quote Originally Posted by BackStaged
    Quote Originally Posted by MJK
    Thanks, it worked.

    I highly recommend this technique for developers who are developing for S60 phones or others supporting svg. Svg icons look so much better than the bitmaps, and if the phone doesn't support svg, it shows the bitmap icon instead. For some phones, you will need to convert the svg file to svgt (svg-tiny) to make it appear.
    Sorry to ask this.. but.. what is SVG icons (and how to create it via a .png per example?)
    SVG stands for scalable vector graphics. So basically, when the icon is enlarged (different phones display icos in different sizes), it doesn't get pixelated but instead looks perfect in every size. You may use software like Inkscape or Adobe Illustrator to save to svg.

  7. #7
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)
    BackStaged's Avatar
    Join Date
    Aug 2010
    Location
    France
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Including SVG icon to JAR file

    Ah cool, and how create this kind of graphics ?

  8. #8
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Including SVG icon to JAR file

    Quote Originally Posted by MJK
    You may use software like Inkscape or Adobe Illustrator to save to svg.

  9. #9
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)
    BackStaged's Avatar
    Join Date
    Aug 2010
    Location
    France
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Including SVG icon to JAR file

    Ha, thanks LB, i didn't see that.
    Sorry MJK.

Similar Threads

  1. Icon in progam file/my app folder
    By Inkompatible in forum Install Creator and Patch Maker
    Replies: 1
    Last Post: 5th September 2011, 08:24 AM
  2. icon for the compressed (build) file
    By tpeck in forum Install Creator and Patch Maker
    Replies: 4
    Last Post: 24th September 2009, 03:15 PM
  3. Troubles with including external file with ONU
    By Blizna in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 12th June 2009, 03:55 PM
  4. Including an External File
    By Jaffob in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 11th June 2009, 02:18 PM
  5. Tray Icon object doesn't display icon
    By Pablo in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 20th November 2006, 04:04 PM

Posting Permissions

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