title: Is there a way to integrate EncryptedSharedPreference with PreferenceScreen?
body: <p>I am new to android development.
  Currently, I would like to encrypt a custom named Shared Preference and integrate with PreferenceScreen but failed to do so. I am using dependencies:</p>
  
  <ol>
  <li>androidx.security:security-crypto:1.0.0-alpha02 [EncryptedSharedPreference]</li>
  <li>androidx.preference:preference:1.1.0 [PreferenceScreen]</li>
  </ol>
  
  <p>I had tried to research the related information about integration of these 2 features but no related information found.</p>
  
  <p>From my testing, I had an existing encrypted shared preference and tested the following API: </p>
  
  <pre><code>getPreferenceManager().setSharedPreferencesName("MyShared"); //MyShared Is custom named preference.
  </code></pre>
  
  <p>But it ended up save the preference in plain value.</p>
  
  <p>My Questions:</p>
  
  <ol>
  <li>Is it possible to integrate these 2 features together in current stage?</li>
  <li>Does PreferenceScreen provide encrypted feature as I am not aware of?</li>
  <li>If I am insist to use EncryptedSharedPreference, will it be better that I create a custom activity look like preference screen?</li>
  </ol>