Performance advice required - creating images for a scrolling list view on Android

This is a question about how best to manage thumbnail images in an list view style app written in Actionscript 3 for Android.
I am building an app that uses a list view control to show lists of data.  As each list item appears on screen during a scroll through the list I create a thumbnail image to display in the list item cell. 
Currently I am embedding the jpg thumbnails in actionscript and using mx.core.bitmapasset to get bitmaps on the fly.  On a live device this is unfortunately slowing things down - the smooth scrolling list jerks every time a new cell appears on screen.
There are probably going to be 500+ thumbnails but a list will only ever have about 150 items in it at any one time, of which only about 6 or 7 are onscreen at the same time.  The list view control is one that I have created myself in actionscript but I am pretty sure the thumbnail creation is the cause of the slowdown.  If I take out thumbnails the scrolling is smooth.  If I reuse the same thumbnail across all cells then scrolling is smooth too.  The component reuses cells as they disappear off one end of the list so there isn't much creation of objects going on.
I am running this in debug so it might be possible that in release things are better (maybe?).
Does anyone have any advice on how best to approach this problem of getting jpg assets available quickly?

Hi,
I think you can use ContentCache here. See http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/core/ContentCache .html. You need to create an instance of ContentCache and set the contentLoader property of your Bitmap object to this instance. You can control the number of cachedEntries by setting maxCacheEntries. The tutorial by Mihai Corlan http://corlan.org/?p=3106 shows how you can use it. I hope you find it useful.
Thanks,
Sanika

Similar Messages

  • Problem creating Image for HP dc5100SFF

    We just installed Zenwork 6.5 and was in the process of creating image
    for HP dc5100 desktop systems, and we encounter some problems. The PC
    downloads Linux.3 and in the process of executing, cannot obtain IP
    address from the DHCP server. How can I get it to see the NIC driver
    which is Broadcom Netxtreme gigabit ethernet card.

    I am running SP1a
    > On Tue, 20 Sep 2005 18:39:34 GMT, [email protected] wrote:
    >
    > > How can I get it to see the NIC driver
    > > which is Broadcom Netxtreme gigabit ethernet card.
    >
    > are you running sp1b?
    > --
    > If you have already compiled drivers or have linux.2 please put them on
    > http://forge.novell.com/modules/xfmo...ect/?zfdimgdrv
    >
    > Marcus Breiden
    >
    > Please change -- to - to mail me.
    > The content of this mail is my private and personal opinion.
    > http://www.edu-magic.net

  • Creating images for video

    This question was posted in response to the following article: http://help.adobe.com/en_US/photoshop/cs/using/WSD62F70FB-13A5-476b-ABA1-F586F7BA4708a.htm l

    How would this apply to a workflow where I had NTSC pixel aspect ratio JPEG (e.g. 720x480 DV NTSC pixel aspect ratio) pulled from Premiere that I wanted to save as a square-pixel image for a web thumbnail?
    By hand, I multiplied 720 by .9091 to get 655 pixels across, so I did Edit -> Image Resize, unchecked Constrain Proportions, then went to View and told it was square pixels, and it looks like that worked and I can finish tweaking things with square pixels.  Is there a way to have Photoshop do the math to figure out the resizing to keep the same image aspect ratio while changing the pixel aspect ratio?

  • How to create wizard for a custom mainenance view/view cluster

    Hi Experts,
    I have created 5 custom maintenance view and have maintained all the views sequencially and have made the first mainenance view as the start view & header entry and all other views are child or subview of the header view in a custom view cluster. But I want a wizard to help the user / end user successfully enter all the required values for all child views, it will help  the user to navigate  from the start view to all the child views where the fields of the wizard will be associated to the child maintenance views.
    Please suggest how to create wizard for view cluster.
    I'll give max reward point for the helpful answer.
    Thanks in advance
    koustav

    Hello Pasapula
    When you are in the View Cluster maintenance dialog (SE54) click on dialog "Events".
    Below the field for the view cluster you have an additional field <b>FORM routines main program</b>. There you have to add the main program containing the FORM routines called by the VC events.
    For example: I had defined a normal report containing an include with all the FORM routines. The report contains only the following lines of coding:
    report zus_0120_u1.
    * Common Data und access routines for user exits in VC maintenance
    include LSVCMCOD.
    include  zus_0120_f1. "FORM routines for VC events
    Now in the "Events" dialog of the view cluster maintenance you assign your FORM routines to the events.
    Regards
      Uwe

  • Wrong format for spreadsheet table, list view, label component

    I have a movie which is connected to a web service.  The web service feeds into cells that are linked to a spreadsheet table component.  The cells are properly formatted in excel and the fields show up fine when using static data.  However, once I pull in data in preview mode or with a published movie the cells lose the desired format.  I tested this with other components such as list view and label and get the same result.  I do not see the same results with the mouse over values in a chart though.  Anyone know what might be the problem?
    Thanks for the help

    Thanks for the response Andy.
    The fields I use have the same uniform format so there is no dynamic formatting going on.  I have read up on the rebind fix and have tried it but it doesn't seem to change things.
    Here are the specifics of my situation.  I paste some sample data returned from a query into the excel sheet.  One of the fields is a percentage so I format those cells appropriately and the excel sheet reflects the change.  I then bind the spreadsheet component to the cells containing the sample data.  The percentage field is properly displayed on the canvas as well as when I go into preview mode.  I now feed the cells with the sample data with a web service that uses the same query I used to generate the sample data.  In preview mode the percentage cell now is unformatted and shows up looking like a decimal number.  The same situation occurs for a label component bound to a single percentage cell.  I even configure the label component to format the text as a percentage.

  • Creating Images for Web, question about settings, etc.

    Okay before someone tells me "use the search function or google", let me say this...i already have.
    I am looking for a guide or anything to ALL settings and recommendations for photoshop cs4.
    I find different examples and such but nothing that is "great" and exactly what I need.
    When creating a new file that will be used for the web.  Logo, site graphics, etc. what are the best
    settings when creating a new document?  recommended settings for anything from the resolution, color mode
    to the "pixel aspect ration" under advanced.
    Basically I just need to do this part my self, i am pretty familiar with photoshop but just never took the time to actually know 100% of the best
    settings that i should use. 
    I just want to be able to create the high quality images i can for my website,
    I use .png for the most part {because i need transparency for several items}.
    but I notice that alot of times it has that little bit of blurryness to it, i tried messing with the resolution, i tried resize, i tried alot of things.
    my BIGGEST frustration and what ultimately led me to come to these forums was the use of the font, no matter what , my font always always always looks a bit blurry.  what can i do to take this effect of blurryness away?
    any and all help is appreciate and i give a thanks in advance!

    The best setting for the issues you describe is to work on your art in Photoshop at a 100% view and to place in a web page at 100%. Do not try to scale the images with HTML/CSS.

  • How to create a background image for each item in a List object

    Hello.
    I am trying to create a background image that displays whenever a user posts something to a list.  For example when a user posts text it would appear in a list.  The new item in the list would contain a specific background image with the users text appearing on top of the background image.  I do not want a background image for the entire list, rather each item within the list.
    I am not sure how clear this is so I added an image below.  When a user enters text in and clicks the "post-it" button their text would appear below with the sticky note background. 
    I am not sure which list type would be best for this problem or how to create insert the image, so I am open to suggestions. 
    Thank you for your help.  Any advice or guidance will be greatly appreciated!

    Hi
    the easiest way would be with itemRenderer.
    You have to do two things:
    1. In your list declaration use a item renderer: <mx:List itemRenderer="myRenderer"/>
    2. create a flex component myRenderer that will be the single item. This can be a canvas with a background image and a text field on it.
    When you add a new item to the list, a new myRenderer item will be created and the data property will be passed to it. So you have to put "data" in your textField.
    If you need more help try looking at Tour de Flex samples, they're pretty easy.
    Andrei

  • [REQ] resizing multiple images for same height or width

    I often insert a lot of images in my indesign documents on a single page. I need to make them of the same height and then resize the image accordingly. I'm using cs6
    For example to align all the images horizontally in a neat way, I change the height manually [for e.g. 60mm] in its dimensions box. Is there a way to do it quickly? Eg. I select all the images and put their height 60mm and their height becomes as specified and they get resized accordingly?
    Same is the requirement of images for width.

    See my reply here: [REQ] fast performance of an exported pdf on slow pc

  • HT1578 My Macbook Pro has been trying to create this for 4 hours now, and is only 25% done.. ideas?

    I'm trying to create a small password-protected image, and followed the instructions in this article; however, it has been stuck at "creating image" for about 4 hours now and is only 25% done. Ideas?

    Hi, tough to tell, but...
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at the top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)

  • Can i use my child registered ps to create work for selling purposes

    Hi,
    I am planning to purchase a copy of "Adobe Creative Suite 6 Design & Web Premium" under student plan using my child's identity.
    My plan is to use it teach my child PS and also for me to create images for both competition and commercial purposes on my personal website.
    The question is, am I allowed to do that?
    If not what are my options?
    Thank you.
    I wish to solve this before doing any legal purchases.

    The question is, am I allowed to do that?
    Yes.
    Education FAQ

  • Asha 501 can't select image for contact list

    Hi,
    I cannot see any option to select the image for my contacts list. Is there any software available to select this..or need to wait for the future release of asha platform 1.
    Appreciate your help in this regard.
    Solved!
    Go to Solution.

    Hi,
    just navigate to the contact you want to assign a picture.
    Slide in the menu bar from the bottom of the screen and press "edit".
    The contact details appear and in the top-left corner are the initials of the contact and a small "+" sign.
    Press here (the whole corner is ok, no need to aim for the +) and you can chose a picture from the gallery.
    Best regards
    MrOxx
    +++
    Please note: I work for Nokia, but all opinions posted here are my own.
    +++
    I will not answer PMs with product related questions. Please ask questions in the forum. Thank you.
    +++

  • Images not shown in Diagram view SCOM 2012 R2

    Dear SCOM Experts,
    I have been creating mpbundle using C# . I was able to add resources to the images. I was able to import the .mpb file. I was able to discover and monitor the components, but I could not see the images for components in diagram view. I have followed the
    procedure in msdn website 
    http://msdn.microsoft.com/en-us/library/gg986188.aspx 
    EnterpriseManagementGroup mg = new EnterpriseManagementGroup("localhost");
    ManagementPack mp = new ManagementPack("Folder\\RePackaging.Library.xml");
    System.IO.FileStream fileStream1 = new System.IO.FileStream("Folder\\Resources\\package_16.png", System.IO.FileMode.Open);
    System.IO.FileStream fileStream2 = new System.IO.FileStream("Folder\\Resources\\package_32.png", System.IO.FileMode.Open);
    System.IO.FileStream fileStream3 = new System.IO.FileStream("Folder\\Resources\\package_64.png", System.IO.FileMode.Open);
    ResourceStream resStream1 = new ResourceStream(mg, fileStream1);
    ResourceStream resStream2 = new ResourceStream(mg, fileStream2);
    ResourceStream resStream3 = new ResourceStream(mg, fileStream3);
    ManagementPackBundleWriter bundleWriter = ManagementPackBundleFactory.CreateBundleWriter(".\\");
    ManagementPackBundle bundle = ManagementPackBundleFactory.CreateBundle();
    bundle.ManagementPacks.Add(mp);
    bundle.AddResourceStream(mp, "RePackaging.Library.Resources.Images.Package_16", resStream1, ManagementPackBundleStreamSignature.Empty);
    bundle.AddResourceStream(mp, "RePackaging.Library.Resources.Images.Package_32", resStream2, ManagementPackBundleStreamSignature.Empty);
    bundle.AddResourceStream(mp, "RePackaging.Library.Resources.Images.Package_64", resStream3, ManagementPackBundleStreamSignature.Empty);
    bundleWriter.Write(bundle, "RePackaging.Library");I had even used MPViewer to check if the images are in .mpb and I could see the images in Resources sectionin MPViewer software. I dont understand why i could not see images in diagram view.Please help!!!!!!

    Hi,
    A management pack bundle gives you the ability to not only add the XML but you could also add images or assembly in a much more efficient way then before without the bundle. When importing a MPB the xml will be imported as well as the assembly and images
    within it.
    Please refer below link for bundle and to unbundle MPB file 
    http://www.systemcentercentral.com/management-pack-bundles-to-bundle-and-to-unbundlendashcreate-a-mpb-and-extract-contents-from-a-mpb/
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Newly created images will not display in Firefox 8 for Mac. Same images appear in other browsers. Why?

    1. Specific new images are uploaded but will not display in Firefox 8 on my Mac with OS 10.6.8. (Does appear in other browsers, e.g., Chrome and Opera, and appears on Firefox 8 for PC.) Also, other images on the page display.
    2. I have cleared cache, cookies, etc., in Recent History, and restarted both application and computer.
    3. I've tried creating GIF, JPG and PNG, but none show on the page in Firefox on my Mac. I can see the offending image in other browsers such as Chrome on the same computer, and on Firefox on PC. Offending pages are in both PHP and HTML: http://www.brookfieldcivic.org/advertisers.php and http://www.brookfieldcivic.org/advertising_freedom_montessori.html
    Image links: http://www.brookfieldcivic.org/images/advertisers/freedom.png and http://www.brookfieldcivic.org/images/advertisers/Freedom_Montessori_bizcard.jpg

    You can use these steps to check if images are blocked:
    *Open the web page that has the images missing in a browser tab.
    *Click the website favicon ([[Site Identity Button]]) on the left end of the location bar.
    *Click the "More Information" button to open the "Page Info" window with the Security tab selected (also accessible via "Tools > Page Info").
    *Go to the <i>Media</i> tab of the "Tools > Page Info" window.
    *Select the first image link and scroll down through the list with the Down arrow key.
    *If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.

  • Disk Utility: after creating the .DMG (compressed image) When "scan image for restore" finishes it displays "unable to scan (internal error)". Since the process was scanning for about 1 hr is this a fake warning?

    External 500GB drive is partitioned with 400GB for Mac OS extended (journalling) and 2nd partition formatted today as "ExFAT".
    Yesterday I tried to create a disk image of my HD to no avail - this was compressed on a FAT partition. I got a warning after running the <scan image for restore> saying "unable to scan (internal error)"
    I rang Apple support who suggested formatting a partition as MAC OS extended (journalling) and choose to save the image as "read/write'. The image process stopped writing at about 200GB and then the file size jumped to 499GB (ie the size of the HD). But the process did nothing for about an hour so I foce quit disk utility (as suggested by apple support)
    My current attempt was to format the external drive again; this time with a 400GB Mac OS extended (journal) format; plus a 100GB ExFAT format partition. The new image was created after about 2.5hrs with a compressed size of 149GB. However, after running the "scan image for restore" facility I got the warning message "unable to scan filename " (internal error). The process was scanning the image file according to the progress bar - this took about hour - thus the warning is a puzzle.
    If anyone can say more about this error I would really appreciate knowing tips for using disk utility. The screen grab is below.
    "unable to scan filename " (internal error)
    thanks

    Thanks for a quick reply <baltwo>. You’ve answered that it is not a fake message!
    fyi: I thought that I would use my external Buffalo for two purposes; namely the smaller ExFAT partition for copying stuff to my win7 netbook. The larger partition was to be used as my imac image of SL. So this was my first attempt at using disk utility - the idea being to hold an image backup at another location. Plus I now have the Lion thumbdrive ready to upgrade from SL and so being cautious wanted to have a SL image backup
    Anyway I followed the apple instructions using my mac 10.6.3 install DVD but it would appear from other discussions that <unable to scan (internal error)> is not unique to me.
    I’ll get back to apple telephone support for further advice.
    I would though be grateful for an “idiots’ guide to making an image backup of my internal HD that runs SL 10.6.8
    eg should I have just one partition on the external USB drive? format it as Mac OS extended? create the image as compressed or read/write? Basically I’ll do whatever will work!!
    thanks again

  • MD04 - How to create a requirement in MD04 for a scheduling agreement

    Hi,
    Pls advice How to create a requirement in MD04 for a scheduling agreement. pls mention the steps and t codes.
    thanks in advance.

    Hi Prajit,
    Sales people will create sales scheduling greements through VA31 T-Code (normally for finished products).In that they define forecast schedules as well as JIT schedules.After creation, these will be appeared in MD04 screen as requirement for that finish material.
    In MRP run,system will create procurement elements (planned orders for example) for these requirements.
    Regards,
    Raja.

Maybe you are looking for

  • Adobe Pro - will not print word documents to pdf.. keeps crashing

    Hello, I have Acrobat Pro and when I try to print Word documents it says printing... and then crashes. The window to select the name of the pdf to print to never pops up. The Word program crashes and reopens. The print icon appears on the system tray

  • 2 x iphone in Itunes

    Is it possible to have two Iphones (1 x Iphone 4 and 1 x phone 4s) in one Itunes account?

  • Need Help Embedding

    Ok so Im trying to embed html code into a website.  I created an animation on edge, but after i publish i cant use the final publish link to just link embed.  Because my isp has inbound ports blocked.       Anyway my question - Is there a way to just

  • How do I get icloud download of local band cd not matched in itunes store?e

    I have subscribed to icloud match and have down loaded itunes music from purchased cds to my ipad2 successfully in the past. I uploaded a local band cd to itunes yesterday and updated my icloud backup, but the music has not downloaded to my ipad2. Ca

  • Cant load dynamic Library

    I am trying to use JNI calls to C library in UNIX environment. I tried to run a simple hello world application using java -Djava.library.path=. com.fedex.jni.Hello I have the "libHello_JNI.so" library in the current directory. But why is it still com