×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Regular Contributor
    Join Date
    Jun 2006
    Posts
    177

    MIDlet-icon is not displayed, why?

    Nokia 6630
    CLDC 1.1
    MIDP 2.0
    WTK25

    I've created a simple MIDlet using WTK25. Now I'm trying to add an icon to this MIDlet which will replace the default MIDlet icon on the phone with an icon specific for this MIDlet (I mean the icon I see on my phone when I start the MIDlet)

    So I added an icon to the resource folder. It had the size 29x26, .png... The icon I specified didn't replace the default icon. So I tryed with size 20x20 but that didn't help either!

    I specified the icon as this in the settings window (WTK25):
    MIDlet-icon = /res/icon.png

    What am I doing wrong here?

    Jeff

  2. #2
    Regular Contributor
    Join Date
    Aug 2006
    Posts
    307

    Re: MIDlet-icon is not displayed, why?

    Usually the midlet icon in WTK is specified as the following:

    MIDlet-1: Name of the Midlet, /path_to_the_icon/icon.png, your.classpath.to.TheMidletClass

    And if your midlet hasn't icon, the MIDlet-1 entry in the JAD file should be like this:

    MIDlet-1: Name of the Midlet,, your.classpath.to.TheMidletClass

  3. #3
    Regular Contributor
    Join Date
    Jan 2006
    Posts
    90

    Re: MIDlet-icon is not displayed, why?

    Try giving

    MIDlet-icon = /icon.png

    Jini

  4. #4
    Regular Contributor
    Join Date
    Jun 2006
    Posts
    177

    Re: MIDlet-icon is not displayed, why?

    Quote Originally Posted by jini_1
    Try giving

    MIDlet-icon = /icon.png

    Jini
    I've tryed this but it didn't help! I have icon.png in the /res folder

  5. #5
    Regular Contributor
    Join Date
    Jul 2005
    Location
    Omaha, US
    Posts
    129

    Re: MIDlet-icon is not displayed, why?

    Thats fine. It will look for /res for any resource files you specify. /icon.png or just icon.png in menifest shud work.

  6. #6
    Regular Contributor
    Join Date
    Jun 2006
    Posts
    177

    Re: MIDlet-icon is not displayed, why?

    But it isn't displayed!

    The image has the dimensions 37x30, and a 256 color palette.

    Any suggestions?

  7. #7
    Regular Contributor
    Join Date
    Jun 2006
    Posts
    177

    Re: MIDlet-icon is not displayed, why?

    any suggestions?

  8. #8
    Regular Contributor
    Join Date
    Jan 2006
    Posts
    90

    Re: MIDlet-icon is not displayed, why?

    Hi

    Try to reduce the dimension of image to 20*20.

    Jini

  9. #9
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: MIDlet-icon is not displayed, why?

    Is the image a valid png? Which JAD/manifest attribute are you using to define the icon (see the first message by axs in this thread for correct attribute)?

    Hartti

  10. #10
    Registered User
    Join Date
    Jan 2006
    Location
    India
    Posts
    37

    Smile Re: MIDlet-icon is not displayed, why?

    For getting the proper display of Midlet Icon use Icon of 42 x 24 size with 32 bit resolution. It will appear perfectly on your handset and try to use vector images for midlet icon.
    Ashish Sharma
    J2ME Developer

  11. #11
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: MIDlet-icon is not displayed, why?

    Just occurred to me that doesitmatter tried to set the MIDlet Suite icon. This is not shown on S60 devices. Only the MIDlet icons are shown and they are defined in the JAD properties mentioned in axs' message.

    However, on Series 40 phones (at least on some of them) the MIDlets in one JAR are grouped inside the MIDlet Suite icon (so the MIDlet-Icon has some meaning on those devices)

    Hartti

Similar Threads

  1. J2ME MIDlet Icon
    By davidmanpearl in forum Mobile Java General
    Replies: 4
    Last Post: 2009-06-11, 02:24
  2. Replies: 7
    Last Post: 2007-09-05, 10:38
  3. 技术文档:MIDP 2.0安全机制 与 MIDlet 数字签名
    By wotrust in forum [Archived] Other Programming Discussion 关于其他编程技术的讨论
    Replies: 0
    Last Post: 2006-12-30, 07:42
  4. N80 midlet icon problem revisited... questions
    By kounapuu in forum Mobile Java General
    Replies: 1
    Last Post: 2006-10-07, 20:15
  5. Symbian Icon & Midlet Icon
    By matteopiccioni in forum Mobile Java General
    Replies: 0
    Last Post: 2004-07-14, 19:13

Posting Permissions

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