Put your problem here if it does not fit any of the other categories.
I have read about the 1000 item limit on xml arrays but I have a situation where I need to load 1400 items into an array list. Now as I understand it java will handle arrays larger then 1000 but the limitation falls with the XML. I have implemented code to load a java array directly from the XML file and that works fine but what I would like is to load a second xml array into an existing java array.
java array choices[0...1000] loaded from XML file 1
java array choices[1001...1400] loaded from XML file2
I am using something like this
final String mychoices = getResources().getStringArray(R.array.choices);
as I said this works great for loading an new array but is there an append to existing array structure
- Posts: 7
- Joined: Sat Feb 04, 2012 5:51 am
Is there some reason you have to have this in an xml file? I mean you could keep an array that size easily in a plain old file and load it yourself. Keep it in the assets. Xml must make the file 2 or 3 times bigger doesn't it?
I also saw where someone used the pullparser to load large xml files into arrays.
Otherwise it seems like you would have to do more than one load and stitch them together with other code.
Hope this helps.
- Master Developer
- Posts: 648
- Joined: Fri Oct 14, 2011 11:19 am
Return to Other Coding-Problems
Who is online
Users browsing this forum: Google [Bot], Google Feedfetcher and 21 guests