 <p>The Android SDK provides the <code>SharedPreferences</code> class to <code>set</code> and <code>get</code> App preferences.</p> <p>These preferences are for small amounts of data, and there are methods for the all the data types (including <code>String</code>).</p> <p>The preferences are removed when the App is uninstalled. Or if the user goes to their device settings, finds the App and selects the "Clear Cache" button.</p> <p>You can set preferences this way:</p> <pre><code>SharedPreferences get = getSharedPreferences("MyApp", Context.MODE_PRIVATE); SharedPreferences.Editor set = get.edit(); set.putInt("BUTTON_COLOR", 0xFF000000); set.commit(); // You must call the commit method to set any preferences that you've assigned. </code></pre> <p>And you can retrieve them this way:</p> <pre><code>get.getInt("BUTTON_COLOR", 0xFF000000); // A preference will never return null. You set a default value as the second parameter. </code></pre>