×

Discussion Board

Results 1 to 15 of 15
  1. #1
    Super Contributor
    Join Date
    Nov 2010
    Posts
    1,265

    Cool Loading the images very slowly during the parsing process of xml

    Loading or Updating the images slowly during the parsing process of xml ..


    I have built a application for( symbian 3 phones) which lists out the channel images list using the xml parsing process.


    But when I run the application ,It takes very much time to laod the images and every time I run the application, the laoding starts freshly without creating any

    local database or cache for storing the data.


    I want to eliminate this problem. Please help me by guidining How to overcome this issue/problem.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,168

    Re: Loading the images very slowly during the parsing process of xml

    maybe you could make a local database, as well as instead of using compressed image formats, you could try saving the images in mbm format, then the processing would be a lot faster.

  3. #3
    Super Contributor
    Join Date
    Nov 2010
    Posts
    1,265

    Re: Loading the images very slowly during the parsing process of xml

    Can I get more brief detail in code ....

  4. #4
    Super Contributor
    Join Date
    Nov 2010
    Posts
    1,265

    Re: Loading the images very slowly during the parsing process of xml

    Exactly where I need to do the changes or modifications for saving the images in mbm format.

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,751

    Re: Loading the images very slowly during the parsing process of xml

    Loading images takes time. Depending on what you need to do with them, it may be possible to load them only when they are really going to be displayed.

  6. #6
    Super Contributor
    Join Date
    Nov 2010
    Posts
    1,265

    Re: Loading the images very slowly during the parsing process of xml

    My application parses the images and data like channel images and channel names contained in the xml.aspx file . Actually my application is live streaming application which displays the images

    first then when clicked on the images ,plays the live stream or video. So I want to avoid too much waiting time for the users as " laoding images is taking much time"

  7. #7
    Super Contributor
    Join Date
    Nov 2010
    Posts
    1,265

    Re: Loading the images very slowly during the parsing process of xml

    I have already added the code as below

    _LIT( KMYSEARCH_mbmFile, "\\resource\\apps\\MyView_mbm.mbm" );

  8. #8
    Super Contributor
    Join Date
    Nov 2010
    Posts
    1,265

    Re: Loading the images very slowly during the parsing process of xml

    Reply me soon with proper solution so that the users dont need to wait all the time for the pictures/images to load.

  9. #9
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,168

    Re: Loading the images very slowly during the parsing process of xml

    basically it is your own application, thus you would need to design and implement the logic by-your-self. Anyway, you could try the ideas as suggested here, thus check what was suggested, see how you can utilize the suggestions, and then if you have problems implementing the suggestions, then please ask again.

    Basically, you can not expect all parts to be delivered to your without you actually doing something in there as well.

  10. #10
    Super Contributor
    Join Date
    Nov 2010
    Posts
    1,265

    Re: Loading the images very slowly during the parsing process of xml

    I have added the code like
    ..\data\Assets\etnow.png C:\system\Apps\Assets\etnow.png
    ..\data\Assets\newx.png C:\system\Apps\Assets\newsx.png
    ..\data\Assets\timesnow.png C:\system\Apps\Assets\timesnow.png in both bld.inf and .pkg files.

    What should I write in .cpp to access the images

  11. #11
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,168

    Re: Loading the images very slowly during the parsing process of xml

    You could speed up your development if you would search a bit, basically if you want to access images thata re not mbm or mif files, then you need to use image decoders. For examples, please do search our wiki.

  12. #12
    Super Contributor
    Join Date
    Nov 2010
    Posts
    1,265

    Re: Loading the images very slowly during the parsing process of xml

    I have used the code http://www.developer.nokia.com/Commu...mages_to_files in .cpp and .h

    But Iam bit canfused to use the code to save images to MBM files by using the Save() function defined in CFbsBitmap.


    Can u be little brief on ot by giving a suitable example.

    In this where will be default path tfor he file getting saved.
    Last edited by GTO_India; 2011-09-22 at 10:30.

  13. #13
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,168

    Re: Loading the images very slowly during the parsing process of xml

    Check API docs for the CFbsBitmap, basically use the Save function to same each image to individual mbm file.

    Wiki also appears to have article on making multi-bitmap mbm files: http://www.developer.nokia.com/Commu...on_of_MBM_file

  14. #14
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,751

    Re: Loading the images very slowly during the parsing process of xml

    In Symbian C++ environment you usually provide fully qualified filenames, e.g. filenames with drive letter and path. If you are really interested if there is a "current" location when saving, you could save something in the emulator, and locate the file in the file system from Windows.

  15. #15
    Super Contributor
    Join Date
    Nov 2010
    Posts
    1,265

    Re: Loading the images very slowly during the parsing process of xml

    No I want to store or save only in C drive etc of my device/mobile .

Similar Threads

  1. Loading process of images and objects, and ignoring events
    By TacB0sS in forum Mobile Java General
    Replies: 2
    Last Post: 2009-11-18, 20:03
  2. Replies: 0
    Last Post: 2009-03-26, 16:30
  3. Emulator loading too slowly(S60 3rd Edition)
    By celinahua in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-10-31, 11:02
  4. Loading 2 Images Loading Problem
    By nimbus_cloud in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2005-08-26, 05:51

Posting Permissions

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