Android custom SharedPreferences implementation to persist to database?
<p>I am attempting to use a custom implementation of the <code>SharedPreferences</code> interface to persist an application's preferences to a database (instead of the default XML). </p>

<p>Why? I'd like to use the convenience of <code>PreferenceActivity</code> to construct the UI but this app will be used on multiple devices so the preferences a user sets need to persist across devices.</p>

<p>So.. I've got the implementation written, but can't figure out how to associate a particular SharedPreference with a <code>PreferenceActivity</code>. I know that uses <code>getSharedPreferences()</code>, but how can I override that? Can i register my <code>SharedPreferences</code> somehow? I did not see anything in the API to do this.</p>

<p>Or ... if I'm going about this all wrong please let me know. Thanks.</p>
