You can try ArrayList data structure...
On Tue, Jul 12, 2011 at 7:55 PM, Shruthi Varma shruthi.tlis...@gmail.comwrote:
Hi All,
I have to parse the xml pasted below and store all the images
under preview_images tag under magazine tag in one Array.
If there was only one magazine tag, It
But we can't create ArrayList at runtime right.
I am not able to find a different approach too.
:(
Regards,
Shruthi.
On Wed, Jul 13, 2011 at 9:43 AM, Durgadoss Ramanathan r.durgad...@gmail.com
wrote:
You can try ArrayList data structure...
On Tue, Jul 12, 2011 at 7:55 PM, Shruthi Varma
new ArrayList()
On Wed, Jul 13, 2011 at 6:20 AM, Shruthi Varma shruthi.tlis...@gmail.comwrote:
But we can't create ArrayList at runtime right.
I am not able to find a different approach too.
:(
Regards,
Shruthi.
On Wed, Jul 13, 2011 at 9:43 AM, Durgadoss Ramanathan
Hi,
You didn't get my point.
After parsing that xml, I will get a number of magazines (images).
I have to store all the images of each magazine in a separate ArrayList.
If I know in advance that I will get 3 magazines, I can initialize 3
ArrayList and store images in it as you said.
But the
You are getting arrays and ArrayList mixed up... ArrayList is dynamic and
you can modify it at runtime.
http://developer.android.com/reference/java/util/ArrayList.html
Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware
On Wed, Jul 13, 2011 at 8:00 AM, Shruthi
@ shruthi
as Durgadoss gave u clear example. u can add any number of item at run time.
with specifying it.
go through documentation of ArrayList
--
Regards,
Ankit
On Wed, Jul 13, 2011 at 7:34 PM, Justin Anderson magouyaw...@gmail.comwrote:
You are getting arrays and ArrayList mixed up...
Hi All,
I have to parse the xml pasted below and store all the images
under preview_images tag under magazine tag in one Array.
If there was only one magazine tag, It would be a simple job, to create an
array and store all the images in it.
But there can be 1 or more than 1 magazines.
I have
new ArrayList().
If you mean array resources, you cannot create array resources at runtime.
You will need to come up with another approach.
On Tue, Jul 12, 2011 at 10:25 AM, Shruthi Varma
shruthi.tlis...@gmail.comwrote:
Hi All,
I have to parse the xml pasted below and store all the images
8 matches
Mail list logo