I want do display some images that I load from a remote source in a
gallery. The gallery should let the user do the following things:

-zoom the image (preferably also by pinch-zoom)
-pan the image
-switch between the different images

Of course most built-in gallery applications can do all of that. So my
first idea was to use an  ACTION_VIEW intent in order to delegate the
task to some gallery application. This however won't work for me since
you can only pass the URI of the image you want to display but not the
actual bitmap data itself. I can't just pass the URL of the remote
image because I need to manage the loading and caching of the data
myself.
A way around this would be to write the data to a local file and then
pass the URI of that file (and deleting the file again afterward).
Besides this being less than elegant it won't even do the trick
because with an intent like this you can only pass one image at a
time.

The built-in Facebook application on the Nexus One actually does
exactly what I have in mind for displaying photo albums. It looks like
a custom gallery activity they built into their application. Does
anyone know whether there are templates available for something like
this somewhere that one could reuse? Building something like this from
scratch by myself seems too time consuming.

I think that what I want to do is a fairly common task, yet I haven't
been able to find a satisfactory solution.
I would be very glad for any hints on how this could be accomplished!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to