How can I display shared preference values in a list?
<p>I am using this code:</p>

<pre><code>SharedPreferences prefName;
prefName = getSharedPreferences("PREF_NAME", MODE_PRIVATE);

CharSequence c = pm.getApplicationLabel(pm.getApplicationInfo(packageInfo.packageName,    PackageManager.GET_META_DATA));

prefName.edit().putBoolean((String) c, false).commit();
</code></pre>

<p>Now i want to display prefName in a list, to display list I am using this code:</p>

<pre><code> ProcessList = (ListView) findViewById(R.id.list); 
 ProcessList.setAdapter(new ArrayAdapter&lt;String&gt;(this,android.R.layout.simple_list_item_multiple_choice,ARRAYLIST) );
 ProcessList.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
</code></pre>

<p>How to convert the 'prefName' to array list so that I can display it in a list.</p>
