0

I'm new to android.I wanna to fill my SharedPreference from ArrayList.. how can I place details to preferences.. preference screen contain some edittext and radiobutton sections

ArrayList<Info> infoList = new ArrayList<Info>();
        InfoHandler infoHandler = new InfoHandler();
        infoList = infoHandler.load(getActivity(), profileId);// rename
        //System.out.println(infoList.size());
        SharedPreferences prefs = PreferenceManager
                .getDefaultSharedPreferences(getActivity());
SharedPreferences.Editor editor = prefs.edit();
        // editor.putString("prefProfileName",infoList.get(0));

How can I extract each element from Arraylist and place to preference screen

Soniya Mohan
  • 4,514
  • 2
  • 12
  • 14

0 Answers0