Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User ranco's Avatar
    Join Date
    Oct 2009
    Posts
    126
    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 sajisoft's Avatar
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,062
    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 ranco's Avatar
    Join Date
    Oct 2009
    Posts
    126
    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 ranco's Avatar
    Join Date
    Oct 2009
    Posts
    126
    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. Media Server:downscale image in DCT-domain
    By yfho in forum Symbian C++
    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
  •  
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