Can I initialize an Array list from data specified in xml resource file?

by Videoguy » Mon, 09 Mar 2009 23:24:10 GMT


Sponsored Links
 Is is possible to specify data in xml resource file and initialize
ArrayList from it?
I am looking for a way to use the ArrayList with a SimpleAdapter to
bind to a ListView.
I am wondering if there is a way to specify my data in xml resource
file and init ArrayList from it.

Videoguy
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Lazy Loading of images in the list view

Hi,

I was trying to implement the lazy loading of images in the list view.
For implementing this i was referring to post by Tom van Zummeren.
(http://blog.jteam.nl/2009/09/17/exploring-the-world-of-android-
part-2/), but my images keep on changing in the list. Please can
anyone let me know if they were able to get this working properly
without having the images drawn again and again or let me know if I
have missed on anything or doing something wrong.

Thanks,
Prajakta

-- 

2. regarding using handler function

Dear Friends,

I think I have put some time intensive work in the main UI of my code. I was
trying to use handlers/threads at the main UI instead. However, this is not
working out. I am not very sure why. This is what I did --


   - inside onCreate:

       - - - - - - - .................................
Thread thread = new Thread(this);
        thread.start();
       - - - - - - - .................................

   - inside run() (1 line only)

handler.sendEmptyMessage(0);

   - inside private Handler handler = new Handler() {          @Override
        public void handleMessage(Message msg)

(everything I was doing - downloading the JSON file, parsing it, using its
information to overlay google map !)

Please suggest me a way. I think I am not doing things the right way :(...
(since the threaded thing is not working out fine :(....)


Regards,
Ahsan, CSE-04
___________________________________________________
Md. Ahsanur Rashid
Graduate Student
Department of Computer Science
North Carolina State University
http://www4.ncsu.edu/~marashid/

-- 

3. HELP! Get contact's thumbnail picture!

4. OOT: Pake themes apa di Andro teman2?

5. Advertising Secrets

6. OS Updates from Cell Provider Only?

7. Nexus.02, Can you hear me now?