Discussion Board

Results 1 to 2 of 2

Hybrid View

  1. #1
    Registered User nodevelop's Avatar
    Join Date
    Mar 2003
    Posts
    37
    hi

    is it possible to show images without the use of the class IOException in MIDP 1.0?
    if not why an image must considered as an error to catch?

    thanks to forum nokia.

    eml

  2. #2
    Regular Contributor wangkui35's Avatar
    Join Date
    Mar 2003
    Location
    Tampere / Finland
    Posts
    201
    Hello,

    There are several methods can be used to create an image. MIDP 1.0 specification defines:

    public static Image createImage(String name) throws IOException

    Only using this one requires declaring IOException to be catched, the IOException can be caused by the following reasons:

    "if the resource does not exist, the data cannot be loaded, or the image data cannot be decoded."

    The detailed instructions can be refered to the MIDP 1.0 specification.

    Regards,
    Kui

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