/** * Maps the specified key to the specified value in this table. Neither the key nor the value can * be null. The value can be retrieved by calling the get method with a key that is equal to the * original key. * * @param key the key * @param value the value * @throws IllegalArgumentException if key or value is null */ public static void putString(String key, String value) { table.putString(key, value); }
/** * Sets a preference value, creating the preference if it does not exist * * @param key - The name of the preference * @param value - The desired value of the preference */ public static void set(String key, Object value) { table.putString(key, value + ""); if (!keys.contains(key)) keys.add(key); }