Display multiple images from a remote source in a gallery (zoomable+pannable)

by legr3c » Wed, 02 Jun 2010 08:23:35 GMT

Sponsored Links
 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
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

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!


Other Threads

1. Problem with SQLite database, accessing the table

isn't options a forbidden name for a table??
it's like a table called delete or select...
select * from select...

you should definitely try with another tablename.

2009/5/11 moazzamk <moazz...@gmail.com>


2. SlidingDrawer

Hi All,

I am new to android.I need some help regarding Slidingdrawer which is
included with SDK 1.5.
I want to implement this feature in my application, i did not get it
anywhere. Please provide me the sample-code (Java and XML).

Objective: i want to put two icons (Clickable i.e buttons) with in the


3. can i display a form to fill in preferences

4. Can I determine if I am on the emulator?

5. Can the Content of SlidingDrawer be a ViewGroup ???

6. Bluetooth headset stopped working after upgrade to 1.5

7. Interesting facts about HTC Magic in UK on Vodafone