p.s. when running the debugger I don't appear to be using anything
like 16mb of the allowed heap space... wonder if it's something else -
if I don't have any luck I'll post my (likely very poor) code up here.

Thanks again.

On Mar 14, 11:38 pm, Gesh <geo...@neofonie.de> wrote:
> hi,
>
> I have written 2 connected apps with some image content pulled from
> the web and must say if you handle your resources right it shouldn't
> be a problem at all.
>
> Do you use your own Adapter for theGridViewor do you use some of the
> already available ones in the SDK? If you use your own you should keep
> in mind that when you deal with AdapterViews in general they keep
> references to Views you create in your adapter and recycle them, so
> try to reuse the convertView reference you get in the Adapter.getView
> (int position, View convertView, ViewGroup parent) method.
>
> And although memory leaks are difficult to achieve in what sounds like
> a single activity app the other thing that comes to mind is that you
> might have memory leaks due to the way you use Drawables. Try using
> Bitmaps from the BitmapFactory.decodeStream(InputStream) method and
> maybe read this blog for more info why Drawables could cause memory
> leaks 
> -http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks.....
>
> cheers,
> gesh.
>
> On Mar 14, 12:47 pm, ifuller1 <ifuller1mob...@gmail.com> wrote:
>
> > I've managed to successfully connect to the picasa web services using
> > JSON and download a list of thumbnails from my picasa album. The
> > thumbnails are all very small but I'm getting pretty terrible
> > performance (especially when compared to the native picture viewer).
> > As my main goal was getting the application working their is obviously
> > lots of optimisation work I can do but I just wanted to know where the
> > most likely cause of poor performance is coming from. Is it the memory
> > usage (so I should try cleaning up existing objects) or is it display
> > performance (can't cope with 30 thumbnails at once)?
>
> > Example thumbnail 
> > imagehttp://lh6.ggpht.com/_QIFTbqmwS8U/Samo30_xoBI/AAAAAAAAAEk/VeBxiukdKzU...
>
> > being loaded via Drawable.createFromStream
>
> > Thanks in advanced.
>
> > Ian
--~--~---------~--~----~------------~-------~--~----~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to