×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    126

    Media Management Service API - get image list fails

    Hi,
    I'm trying to get the list of images in the gallery on my 5800, using Media Management Service API:
    Code:
    ImageName_txt.text = "Loading...";
    // get the list of images
    var media   = new Service("Service.MediaManagement", "IDataSource");
    var filter  = {FileType:"Image", Key:"FileExtension", StartRange:".jpg"};
    var inParam = {Type:"FileInfo", Filter:filter};
    media.GetList(inParam,onReceive);
    
    // load images
    function onReceive(transactionID:Number, eventID:Number, outParam:Object) {
      ImageName_txt.text = "in onReceive()";
      if (outParam.ErrorCode == 0) {
    ...
    But the application never gets to the onReceive callback! Instead, it exits immediately.
    Any clue? Did anyone had a success with this Service?
    Thanks,

    Ranco

  2. #2
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: Media Management Service API - get image list fails

    Are u importing the Platform Service Interface APIs i.e
    Code:
    import com.nokia.lib.Service;
    I tested out this example again and it is working for me on N5800 XM (Flash Lite 3.1):
    Listing_media_files_in_Flash_Lite

    Best Regards,
    SajiSoft

  3. #3
    Registered User
    Join Date
    Oct 2009
    Posts
    126

    Re: Media Management Service API - get image list fails

    Quote Originally Posted by sajisoft View Post
    Are u importing the Platform Service Interface APIs i.e
    Code:
    import com.nokia.lib.Service;
    I tested out this example again and it is working for me on N5800 XM (Flash Lite 3.1):
    Listing_media_files_in_Flash_Lite

    Best Regards,
    SajiSoft
    I did import Services.
    But now I've tested this sample and it works for me as well.
    I'll check later today - maybe I didn't publish it for FL3.0 !
    Ranco

  4. #4
    Registered User
    Join Date
    Oct 2009
    Posts
    126

    Re: Media Management Service API - get image list fails

    Quote Originally Posted by ranco View Post
    I did import Services.
    But now I've tested this sample and it works for me as well.
    I'll check later today - maybe I didn't publish it for FL3.0 !
    Ranco
    Working fine now. nothing was wrong, just bugs...
    Sajid, thanks for the sample!
    Ranco

Similar Threads

  1. how to cut some part of Image
    By mshouab in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2006-08-04, 09:05
  2. 7610 lacks "megapixel" Java Mobile Media API
    By jojala2 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2005-06-16, 21:09
  3. HELP: Mutable Image to Immutable Image?
    By rj_cybersilver in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2005-03-26, 09:58
  4. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31
  5. Replies: 0
    Last Post: 2003-08-15, 13:01

Posting Permissions

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