Storing listView visibility in sharedPreferences
<pre><code>SharedPreferences preferences = PreferenceManager.
getDefaultSharedPreferences(ClassName.this);
SharedPreferences.Editor editor = preferences.edit();
editor.putString("Info", String.valueOf(List1.getVisibility()));
editor.putString("Office", String.valueOf(List2.getVisibility()));
editor.putString("Education", String.valueOf(List3.getVisibility()));
</code></pre>

<ol>
<li>Why is the <code>List1.getVisibility()</code> returns me <code>0</code> when visible and <code>8</code> when hidden?</li>
<li>Am i storing the right way, the visibility in the SharedPreferences.How would i retrive the values<code>onCreate()</code> of my activity.Should i do a<code>
if /else</code> check for each <code>ListView</code> or can i do something better.</li>
</ol>
