referencing List preferences in email subject
<pre><code>private void submit() 
{ 
    SharedPreferences SP = PreferenceManager.getDefaultSharedPreferences(getBaseContext());
    String listprefs = SP.getString("listprefs","1");              

    Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
    String[] recipients = new String[]{""};
    emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, recipients);
    emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, ); 
</code></pre>

<p>I am not sure if this is even possible, but I am needing to have the value that is selected in the list preference to show in the subject of an email. This is part of the code for the submit function of the app. </p>

<p>It works fine the way it is, but I am needing what the user selects to show in the <code>emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT</code> line so it will auto populate when the email is generated. </p>

<p>I have tried just about everything I can find on here and through other searches and have not had any luck.</p>
