How can I dynamically add item to a Gallery in android

by ying lcs » Thu, 05 Mar 2009 09:03:11 GMT


Sponsored Links
 Hi,

Can you please tell me how can I dynamically add item to Gallery?
I have looked at ApiDemo and have studied their example.

But the ImageAdapter there is a BaseAdapter which has a fixed sized
array and the getCount() just return the length of the array.
My question is how can I change that to a dynamically size vector? I
have set breakpoints in getCount(), and it only called once
dynamically during initialization.  So how can I tell android that the
gallery size has changed?

Thank you.

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. How to call a java script function from android activity

There are a lot of examples that you can look at...

http://android-developers.blogspot.com/2008/09/using-webviews.html

Check out the above link and you will get an idea.

Kumar Bibek




-- 

2. New member.

Pagi.
Salam kenal semuanya.
Android?gak paham sama skli..
Mohon bimbingan nya ya ;)

tio ping.
male.
jakarta.

Thx.

-- 
--------------
"Indonesian Android Community [id-android]" 

3. how can i access a sqlite database that is not own by my application?

4. Is it possible to send some data while making a call

5. fd = open("/dev/video0", O_RDWR) fails

6. Tablet Berbasis Android, Adam

7. Magic 32a by x rom eclair final 1.0