The issue is not string[] or List<string> but with Dalvik VM issuing a
ReferenceTable overflow (max=512)

The call to String[] items =
getResources().getStringArray(R.array.arrayname);

The array has 770 entries. I can split the array into two arrays or
can the ReferenceTable size be increased?

On May 3, 12:27 pm, niko20 <nikolatesl...@yahoo.com> wrote:
> Check your logcat to see if you have out of memory errors. Java Dalvik
> programs are hard limited to 16Megs.
>
> -niko
>
> On May 3, 10:53 am, Jose Gomez <j...@josecgomez.com> wrote:
>
>
>
> > Not quite sure how they handle regular old arrays in the implementation of
> > android. But List has never given me any problems.
>
> > Sincerely
> > Jose C Gomez
>
> >http://www.josecgomez.com
>
> > On Mon, May 3, 2010 at 11:49 AM, Alain <aarn...@gmail.com> wrote:
> > > I am usingString[]
>
> > >String[] items = getResources().getStringArray(R.array.arrayname);
>
> > > I will try List<String>
>
> > > Why wouldString[] be limited in the number of items?
>
> > > Thanks
>
> > > On May 3, 10:34 am, Jose Gomez <j...@josecgomez.com> wrote:
> > > > Are you usingString[] or List<String> ? If using List<String> it should
> > > > basically be unlimited.
> > > > Sincerely
> > > > Jose C Gomez
>
> > > >http://www.josecgomez.com
>
> > > > On Mon, May 3, 2010 at 9:47 AM, Alain <aarn...@gmail.com> wrote:
> > > > > I have astring-array with 2000 items, each item can be 60 characters
> > > > > long, the program crashes when it tries to load the completestring-
> > > > > array. Then I split thestring-array in 4 sections, and the program
> > > > > loads each section with no problem.
>
> > > > > My question, what's the max number of items in astringarray? Is that
> > > > > device or sdk level dependent? Can it be changed?
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > > > Groups "Android Developers" group.
> > > > > To post to this group, send email to
> > > android-developers@googlegroups.com
> > > > > To unsubscribe from this group, send email to
> > > > > android-developers+unsubscr...@googlegroups.com<android-developers%2Bunsubs
> > > > >  cr...@googlegroups.com>
> > > <android-developers%2bunsubscr...@googlegroups.com<android-developers%252Bu
> > >  nsubscr...@googlegroups.com>
>
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/android-developers?hl=en
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to android-developers@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > > android-developers+unsubscr...@googlegroups.com<android-developers%2Bunsubs
> > > >  cr...@googlegroups.com>
> > > > For more options, visit this group athttp://
> > > groups.google.com/group/android-developers?hl=en
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com<android-developers%2Bunsubs
> > >  cr...@googlegroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group 
> > athttp://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to