Using a PreferenceActivity to let the user pick something from a lsit
<p>I have created an activity which when launched, displays a list of items, allowing the user to create, rename, delete, etc. items from this list. Once the user clicks an item on the list, the activity calls <code>setResult()</code> followed by <code>finish()</code>. I use this activity various times in my application, and want to use it to let the user select a default value from this list from a PreferenceActivity. So basically, I want it to flow like this:</p>

<ol>
<li>User goes into the app's preferences</li>
<li>User selects the button to change the default item</li>
<li>My activity launches, and the user selects an item from that list</li>
<li>My activity finishes, having set the result</li>
<li>The value the user selected is now saved as the default value as a preference in the application</li>
</ol>

<p>Anyone know how to do this?</p>
