×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    13

    Nokia 5220 Xpressmusic - MediaException

    Hello!
    I'm trying to implement on my Nokia 5220 XpressMusic the following method:
    Code:
    public static Image resizeImage(InputStream src, int width, int height)
    {
      MediaProcessor mp;
      try {
         mp = GlobalManager.createMediaProcessor("image/jpeg");
         mp.setInput(src, MediaProcessor.UNKNOWN);
         ByteArrayOutputStream bos = new ByteArrayOutputStream();
         mp.setOutput(bos);
         ImageTransformControl fc = (ImageTransformControl) mp
             .getControl("javax.microedition.amms.control.imageeffect.ImageTransformControl");
         fc.setTargetSize(width, height, 0);
         fc.setEnforced(true);
         fc.setEnabled(true);
    
         mp.complete();
         src.close();
         return Image.createImage(bos.toByteArray(), 0, bos.size());
       } catch (MediaException e) {
           System.out.println("MediaException in Utils.resizeImage():" + e.getMessage());
       } catch (IOException e) {
           System.out.println("IOException in Utils.resizeImage():" + e.getMessage());
       }
       return null;
    }
    It's been taken from here

    While executing the method I receive "javax.microedition.media.mediaexception:Unsupported". It's quite strange because as claimed here Nokia 5220 supports jsr 234 api. Does aybody know the solution or explanation to the problem? All ideas are welcome.

  2. #2
    Registered User
    Join Date
    Dec 2008
    Posts
    12

    Re: Nokia 5220 Xpressmusic - MediaException

    Hi ,
    I have observed that most of the Nokia phones that claim to have FM-RDS phones actually do not support the JSR-234. I have seen people posting this issue for Nokia 5220 and i personally bought the Nokia e71 and i still get the same error that MediaException:Unable to create Player with locator capture://radio
    . Would someone at Nokia take this responsibility to explain the issue?
    Thanks,
    Aj

  3. #3
    Registered User
    Join Date
    Nov 2008
    Posts
    13

    Re: Nokia 5220 Xpressmusic - MediaException

    Here is the answer for our problem. Simply not all classes of JSR-234 API are supported. Tough luck. It's no fair a bit ;] Is Nokia going to support all classes in the nearest future? Does anybody know that?

  4. #4
    Registered User
    Join Date
    Nov 2008
    Posts
    13

    Re: Nokia 5220 Xpressmusic - MediaException

    Does anybody know if Nokias engineers are going to implement this lacking functionality in JSR-234 API in nearest future?

  5. #5
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Nokia 5220 Xpressmusic - MediaException

    Many J2ME APIs (and the media APIs in particular) have large amounts of optional functionality. Few implementations are going to support every piece of functionality and every possible image, video and audio format.

    I'm sure future implementations will support more, but don't hold your breath.

  6. #6
    Registered User
    Join Date
    Nov 2008
    Posts
    13

    Re: Nokia 5220 Xpressmusic - MediaException

    Ok, thanks for the explanation.

Similar Threads

  1. which phones for laptop
    By dvdljns in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2006-02-14, 12:58
  2. Infra-red capability
    By Symbian_Challenge_0412 in forum General Development Questions
    Replies: 1
    Last Post: 2005-08-16, 18:24
  3. Nokia Mobile VPN Client
    By marcyl in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2003-12-01, 14:47

Posting Permissions

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