Is putExtra the only way of passing data to a new Activity?
<p>I have created a SettingsActivity for my app.  In this <code>Activity</code> I am using the <code>SharedPreferences</code> class to do handle the user editable preferences.</p>

<p>While setting up the <code>SharedPreferences</code>, I have to load them in the <code>onCreate</code> of my main activity and then again in the SettingsActivity.  The probably was that both calls to the <code>getXXXX()</code> methods require defaults and I figured that it would not be good to hard-code the default values into both places because I would imagine it would be problematic in the future if I ever changed them.</p>

<p>Which is the best/most popular (or accepted standard) of doing this?</p>

<ul>
<li><p>Create a global variables class in which I import into each activity and define my default constants in there?</p></li>
<li><p>Use <code>putExtra</code> and <code>getExtra</code> to pass the data from the main activity to the settings activity?</p></li>
</ul>

<p>Any other suggestions?</p>
