There is definitely something wrong going on in your application and
we'd be happy to assist. Just know that we test Android on actual
devices every day and we never encountered such an impressive
slowdown.

On Mon, Apr 7, 2008 at 7:50 AM, Anil <[EMAIL PROTECTED]> wrote:
>
>  Thanks hackbod, for replying. As a well wisher, I must say the
>  slowness of the Android UI really bothers me.
>  It took 17 seconds to parse an XML file and load the UI widgets - a
>  list of compound items.
>  The same list loaded almost instantaneously - too fast to measure by
>  hand, but less than half a second - using a Java Swing application.
>  The parsing and loading code was identical - except that in Android
>  one has to use the SAXParserFactory class, and in Swing, I could use
>  XMLReaderFactory directly.
>  I shall follow your advice and use the profiler but not immediately as
>  I still have a lot of coding to do and am very nervous and stressed
>  out :)
>  thanks,
>  Anil
>
>  On Apr 7, 1:05 am, hackbod <[EMAIL PROTECTED]> wrote:
>  > Unless the other applications in the emulator are slow like this,
>  > there is something specific about what you are doing that is either
>  > slow itself or hitting some slow point in the OS.
>  >
>  > Have you tried running with the profiler to see where time is being
>  > spent?
>  >
>  > 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.
>  >
>



-- 
Romain Guy
www.curious-creature.org

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to