<p>Alternatively, if you need just one shared preference file for your activity, you can use the
<code><a href="../../../reference/android/app/Activity.html#getPreferences(int)">getPreferences()</a></code> method:</p>

<pre>
SharedPreferences sharedPref = getActivity().getPreferences(Context.MODE_PRIVATE);
</pre>

<p class="caution"><strong>Caution:</strong> If you create a shared preferences file
with <code><a href="../../../reference/android/content/Context.html#MODE_WORLD_READABLE">MODE_WORLD_READABLE</a