Discussion Board

Results 1 to 11 of 11
  1. #1
    Regular Contributor doesitmatter's Avatar
    Join Date
    Jun 2006
    Posts
    177
    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 axs's Avatar
    Join Date
    Aug 2006
    Posts
    307
    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 jini_1's Avatar
    Join Date
    Jan 2006
    Posts
    90
    Try giving

    MIDlet-icon = /icon.png

    Jini

  4. #4
    Regular Contributor doesitmatter's Avatar
    Join Date
    Jun 2006
    Posts
    177
    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 prashant332's Avatar
    Join Date
    Jul 2005
    Location
    Omaha, US
    Posts
    129
    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 doesitmatter's Avatar
    Join Date
    Jun 2006
    Posts
    177
    But it isn't displayed!

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

    Any suggestions?

  7. #7
    Regular Contributor doesitmatter's Avatar
    Join Date
    Jun 2006
    Posts
    177
    any suggestions?

  8. #8
    Regular Contributor jini_1's Avatar
    Join Date
    Jan 2006
    Posts
    90
    Hi

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

    Jini

  9. #9
    Nokia Developer Champion hartti's Avatar
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192
    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 Ashish_J2ME's Avatar
    Join Date
    Jan 2006
    Location
    India
    Posts
    37
    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 hartti's Avatar
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved