It should be a lot faster than that, but knowing the emulator is a resource-hog, my first question is what kind of computer are you using for dev work?
On Apr 5, 8:49 pm, Anil <[EMAIL PROTECTED]> wrote: > The same operation in Java Swing is almost instantaneous. > > On Apr 4, 6:57 pm, Anil <[EMAIL PROTECTED]> wrote: > > > 35x35 pixels. this is just the audio 'speaker' icon on a button. > > > On Apr 4, 11:28 am, hackbod <[EMAIL PROTECTED]> wrote: > > > > On Apr 4, 5:44 am, Anil <[EMAIL PROTECTED]> wrote: > > > > > No, it is a small image: 863 bytes > > > > The second time, I have already removed it from the layout, and am > > > > calling getImageResource again, so I am surprised it is much quicker. > > > > Resources are cached. The primary difference between the two runs is > > > most likely image loading. > > > > Btw, it's not just the file size of the image that matters, but also > > > the size of the bitmap it uncompresses to. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---