Android Set <String> to array -


i new android programming. have saved data insharedpreference , data , store following

        set <string> set = sharedpref.getstringset(dayname, null); 

this set <string> set got 3 array stored in row arrayone, arraytwo, arraythree tag. there way convert array , save individually.

thanks help.

you can convert set<string> array of string follows...

set <string> set = sharedpref.getstringset(dayname, null); list<string> list = new arraylist<string>(set); string[] objects = list.toarray(); 

Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -