private void addObject ( ) { SharedPreferences prefs = loadSharedPreferences ( "objectList" ) ; List < String > objects = getObjectList ( ) ; objects . add ( getId ( ) ) ; prefs . edit ( ) . putString ( "list" , StringUtils . join ( objects , "," ) ) . commit ( ) ; }
Adds the object to the ids list .