Mumble mumble.. Maybe for your purpose a normal file is the best way.
I think answer at your a,b question is not. On 16 Mar, 13:08, New Developer <[email protected]> wrote: > Thanks > > But can the array xml file by that I mean <resources> <string-array> > > a) IF stored in the /res directory can it be changed and > modified *after* installation, say months of use later ? > b) Can this be stored in /mnt/sdcard I know this can be modified after > installation ? > > I guess What is the best way to store the contacts list on a phone, as my > spinner list is much the same as that > > Thanks again > > On Mar 16, 2011, at 4:53 AM, pedr0 wrote: > > > > > > > > > You could store in an XML array file and inflate it each time spinner > > is visible. > > > Like this: > > > Spinner spinner = (Spinner) findViewById(R.id.spinner); > > ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource( > > this, R.array.planets_array, android.R.layout.simple_spinner_item); > > adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_it > > em); > > spinner.setAdapter(adapter); > > > See here for more > > information:http://developer.android.com/resources/tutorials/views/hello-spinner.... > > > Bye! > > > On 15 Mar, 14:56, New Developer <[email protected]> wrote: > >> When creating a spinner list that can be added to by the user over time. > >> Is it best to store this in an XML Array file > >> <resources> > >> <!-- Used in View/Spinner1.java --> > >> <string-array name="colors"> > >> <item>red</item> > >> <item>orange</item> > > >> Or in a text file and load the data into an ArrayAdapter each time the > >> spinner is visible ? > > >> Also IF I have three activities (screens) > > >> When is the constructor and when is the destructor called ? > > >> How is the memory emptied for the ArrayAdapter ? (Each time the screen is > >> closed ?) > > >> thanks in advance > > > -- > > undefined > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en -- undefine -- undefined -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

